Class DOMForest

  • Direct Known Subclasses:
    MetadataFinder

    public class DOMForest
    extends Object
    Author:
    Vivek Pandey
    • Field Detail

      • rootDocuments

        protected final Set<String> rootDocuments
        To correctly feed documents to a schema parser, we need to remember which documents (of the forest) were given as the root documents, and which of them are read as included/imported documents.

        Set of system ids as strings.
      • externalReferences

        protected final Set<String> externalReferences
        Contains wsdl:import(s)
      • core

        protected final Map<String,​Document> core
        actual data storage map<SystemId,Document>.
      • inlinedSchemaElements

        protected final List<Element> inlinedSchemaElements
        inlined schema elements inside wsdl:type section
      • locatorTable

        public final LocatorTable locatorTable
        Stores location information for all the trees in this forest.
      • outerMostBindings

        public final Set<Element> outerMostBindings
        Stores all the outer-most <jaxb:bindings> customizations.
      • logic

        protected final InternalizationLogic logic
        Schema language dependent part of the processing.
    • Method Detail

      • getInlinedSchemaElement

        public List<Element> getInlinedSchemaElement()
      • getReferencedEntityMap

        public Map<String,​String> getReferencedEntityMap()
      • addExternalReferences

        public void addExternalReferences​(String ref)
      • getExternalReferences

        public Set<String> getExternalReferences()
      • get

        public Document get​(String systemId)
        Gets the DOM tree associated with the specified system ID, or null if none is found.
      • listSystemIDs

        public String[] listSystemIDs()
        Gets all the system IDs of the documents.
      • getSystemId

        public String getSystemId​(Document dom)
        Gets the system ID from which the given DOM is parsed.
        Poor-man's base URI.
      • getFirstRootDocument

        public String getFirstRootDocument()
        Gets the first one (which is more or less random) in rootDocuments.
      • getRootDocuments

        public Set<String> getRootDocuments()
      • dump

        public void dump​(OutputStream out)
                  throws IOException
        Dumps the contents of the forest to the specified stream.
        This is a debug method. As such, error handling is sloppy.
        Throws:
        IOException