public class DOMForest extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
DOMForest.Handler |
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Document> |
core
actual data storage map<SystemId,Document>.
|
protected EntityResolver |
entityResolver |
protected ErrorReceiver |
errorReceiver |
protected Set<String> |
externalReferences
Contains wsdl:import(s)
|
protected List<Element> |
inlinedSchemaElements
inlined schema elements inside wsdl:type section
|
LocatorTable |
locatorTable
Stores location information for all the trees in this forest.
|
protected InternalizationLogic |
logic
Schema language dependent part of the processing.
|
protected WsimportOptions |
options |
Set<Element> |
outerMostBindings
Stores all the outer-most <jaxb:bindings> customizations.
|
protected Map<String,String> |
resolvedCache |
protected 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.
|
| Constructor and Description |
|---|
DOMForest(InternalizationLogic logic,
EntityResolver entityResolver,
WsimportOptions options,
ErrorReceiver errReceiver) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExternalReferences(String ref) |
void |
dump(OutputStream out)
Dumps the contents of the forest to the specified stream.
|
Document |
get(String systemId)
Gets the DOM tree associated with the specified system ID,
or null if none is found.
|
Set<String> |
getExternalReferences() |
String |
getFirstRootDocument()
Gets the first one (which is more or less random) in
rootDocuments. |
List<Element> |
getInlinedSchemaElement() |
Map<String,String> |
getReferencedEntityMap() |
Set<String> |
getRootDocuments() |
String |
getSystemId(Document dom)
Gets the system ID from which the given DOM is parsed.
|
String[] |
listSystemIDs()
Gets all the system IDs of the documents.
|
Document |
parse(InputSource source,
boolean root) |
Document |
parse(String systemId,
boolean root)
Parses an XML at the given location (
and XMLs referenced by it) into DOM trees
and stores them to this forest.
|
protected final Set<String> rootDocuments
protected final ErrorReceiver errorReceiver
protected final List<Element> inlinedSchemaElements
public final LocatorTable locatorTable
protected final EntityResolver entityResolver
public final Set<Element> outerMostBindings
protected final InternalizationLogic logic
protected final WsimportOptions options
public DOMForest(InternalizationLogic logic, @NotNull EntityResolver entityResolver, WsimportOptions options, ErrorReceiver errReceiver)
@NotNull public Document parse(InputSource source, boolean root) throws SAXException, IOException
SAXExceptionIOExceptionpublic Document parse(String systemId, boolean root) throws SAXException, IOException
SAXExceptionIOExceptionpublic void addExternalReferences(String ref)
public Document get(String systemId)
public String[] listSystemIDs()
public String getSystemId(Document dom)
public String getFirstRootDocument()
rootDocuments.public void dump(OutputStream out) throws IOException
IOExceptionCopyright © 2005–2018 Oracle Corporation. All rights reserved.