Interface Import

  • All Superinterfaces:
    Cloneable, MetaDataObject, Serializable, XMLizable
    All Known Implementing Classes:
    Import_impl

    public interface Import
    extends MetaDataObject
    An import declaration. These are currently used to import type systems, indexes, and type priorities. Imports may be by location (relative URL) or name (a Java-style compound name, looked up in the classpath), but not both.
    • Field Detail

      • EMPTY_IMPORTS

        static final Import[] EMPTY_IMPORTS
    • Method Detail

      • getName

        String getName()
        Gets the name of this import's target.
        Returns:
        a Java-style compound name which specifies the target of this import. This will be located by appending ".xml" to the name and searching the classpath.
      • setName

        void setName​(String aName)
        Sets the name of this import's target.
        Parameters:
        aName - a Java-style compound name which specifies the target of this import. This will be located by appending ".xml" to the name and searching the classpath.
      • getLocation

        String getLocation()
        Gets the location of this import's target.
        Returns:
        a URI specifying the location of this import's target.
      • setLocation

        void setLocation​(String aUri)
        Sets the location of this import's target.
        Parameters:
        aUri - a URI specifying the location of this import's target.
      • findAbsoluteUrl

        URL findAbsoluteUrl​(ResourceManager aResourceManager)
                     throws InvalidXMLException
        Computes the absolute URL for this import, using the relative location or name, whichever is specified by this import object.
        Parameters:
        aResourceManager - resource manager to use to do name lookups
        Returns:
        the absolute URL for this import
        Throws:
        InvalidXMLException - if the import could not be resolved