Class Import_impl

    • Field Detail

      • LOG_RESOURCE_BUNDLE

        protected static final java.lang.String LOG_RESOURCE_BUNDLE
        resource bundle for log messages
        See Also:
        Constant Field Values
      • mName

        private java.lang.String mName
      • mLocation

        private java.lang.String mLocation
      • byNameSuffix

        private java.lang.String byNameSuffix
    • Constructor Detail

      • Import_impl

        public Import_impl()
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: Import
        Gets the name of this import's target.
        Specified by:
        getName in interface Import
        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

        public void setName​(java.lang.String aName)
        Description copied from interface: Import
        Sets the name of this import's target.
        Specified by:
        setName in interface Import
        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

        public java.lang.String getLocation()
        Description copied from interface: Import
        Gets the location of this import's target.
        Specified by:
        getLocation in interface Import
        Returns:
        a URI specifying the location of this import's target.
      • setLocation

        public void setLocation​(java.lang.String aUri)
        Description copied from interface: Import
        Sets the location of this import's target.
        Specified by:
        setLocation in interface Import
        Parameters:
        aUri - a URI specifying the location of this import's target.
      • setSuffix

        public void setSuffix​(java.lang.String suffix)
      • findAbsoluteUrl

        public java.net.URL findAbsoluteUrl​(ResourceManager aResourceManager)
                                     throws InvalidXMLException
        Description copied from interface: Import
        Computes the absolute URL for this import, using the relative location or name, whichever is specified by this import object.
        Specified by:
        findAbsoluteUrl in interface Import
        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
      • toXML

        public void toXML​(org.xml.sax.ContentHandler aContentHandler,
                          boolean aWriteDefaultNamespaceAttribute)
                   throws org.xml.sax.SAXException
        Overridden to provide custom XML representation.
        Specified by:
        toXML in interface XMLizable
        Overrides:
        toXML in class MetaDataObject_impl
        Parameters:
        aContentHandler - the content handler to which this object will write events that describe its XML representation.
        aWriteDefaultNamespaceAttribute - whether the namespace of this element should be written as the default namespace. This should be done only for the root element, and it defaults to false.
        Throws:
        org.xml.sax.SAXException - pass thru
        See Also:
        XMLizable.toXML(ContentHandler)
      • toXMLinner

        private void toXMLinner​(boolean aWriteDefaultNamespaceAttribute)
                         throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException