java.lang.Object
com.sun.tools.ws.wsdl.parser.DOMForest
- Direct Known Subclasses:
MetadataFinder
- Author:
- Vivek Pandey
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionactual data storage map<SystemId,Document>.protected final EntityResolver
protected final ErrorReceiver
Contains wsdl:import(s)inlined schema elements inside wsdl:type sectionfinal com.sun.tools.xjc.reader.internalizer.LocatorTable
Stores location information for all the trees in this forest.protected final InternalizationLogic
Schema language dependent part of the processing.protected final WsimportOptions
Stores all the outer-most <jaxb:bindings> customizations.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. -
Constructor Summary
ConstructorDescriptionDOMForest
(InternalizationLogic logic, EntityResolver entityResolver, WsimportOptions options, ErrorReceiver errReceiver) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
dump
(OutputStream out) Dumps the contents of the forest to the specified stream.Gets the DOM tree associated with the specified system ID, or null if none is found.Gets the first one (which is more or less random) inrootDocuments
.getSystemId
(Document dom) Gets the system ID from which the given DOM is parsed.String[]
Gets all the system IDs of the documents.Parses an XML at the given location ( and XMLs referenced by it) into DOM trees and stores them to this forest.parse
(InputSource source, boolean root)
-
Field Details
-
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
Contains wsdl:import(s) -
core
actual data storage map<SystemId,Document>. -
errorReceiver
-
inlinedSchemaElements
inlined schema elements inside wsdl:type section -
locatorTable
public final com.sun.tools.xjc.reader.internalizer.LocatorTable locatorTableStores location information for all the trees in this forest. -
entityResolver
-
outerMostBindings
Stores all the outer-most <jaxb:bindings> customizations. -
logic
Schema language dependent part of the processing. -
options
-
resolvedCache
-
-
Constructor Details
-
DOMForest
public DOMForest(InternalizationLogic logic, @NotNull EntityResolver entityResolver, WsimportOptions options, ErrorReceiver errReceiver)
-
-
Method Details
-
getInlinedSchemaElement
-
parse
- Throws:
SAXException
IOException
-
parse
Parses an XML at the given location ( and XMLs referenced by it) into DOM trees and stores them to this forest.- Returns:
- the parsed DOM document object.
- Throws:
SAXException
IOException
-
getReferencedEntityMap
-
addExternalReferences
-
getExternalReferences
-
get
Gets the DOM tree associated with the specified system ID, or null if none is found. -
listSystemIDs
Gets all the system IDs of the documents. -
getSystemId
Gets the system ID from which the given DOM is parsed.
Poor-man's base URI. -
getFirstRootDocument
Gets the first one (which is more or less random) inrootDocuments
. -
getRootDocuments
-
dump
Dumps the contents of the forest to the specified stream.
This is a debug method. As such, error handling is sloppy.- Throws:
IOException
-