|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.tools.ws.wsdl.parser.DOMForest
public class DOMForest
| Nested Class Summary | |
|---|---|
static interface |
DOMForest.Handler
|
| Field Summary | |
|---|---|
protected java.util.Map<java.lang.String,org.w3c.dom.Document> |
core
actual data storage map<SystemId,Document>. |
protected org.xml.sax.EntityResolver |
entityResolver
|
protected ErrorReceiver |
errorReceiver
|
protected java.util.Set<java.lang.String> |
externalReferences
Contains wsdl:import(s) |
protected java.util.List<org.w3c.dom.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
|
java.util.Set<org.w3c.dom.Element> |
outerMostBindings
Stores all the outer-most <jaxb:bindings> customizations. |
protected java.util.Map<java.lang.String,java.lang.String> |
resolvedCache
|
protected java.util.Set<java.lang.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 Summary | |
|---|---|
DOMForest(InternalizationLogic logic,
org.xml.sax.EntityResolver entityResolver,
WsimportOptions options,
ErrorReceiver errReceiver)
|
|
| Method Summary | |
|---|---|
void |
addExternalReferences(java.lang.String ref)
|
void |
dump(java.io.OutputStream out)
Dumps the contents of the forest to the specified stream. |
org.w3c.dom.Document |
get(java.lang.String systemId)
Gets the DOM tree associated with the specified system ID, or null if none is found. |
java.util.Set<java.lang.String> |
getExternalReferences()
|
java.lang.String |
getFirstRootDocument()
Gets the first one (which is more or less random) in rootDocuments. |
java.util.List<org.w3c.dom.Element> |
getInlinedSchemaElement()
|
java.util.Map<java.lang.String,java.lang.String> |
getReferencedEntityMap()
|
java.util.Set<java.lang.String> |
getRootDocuments()
|
java.lang.String |
getSystemId(org.w3c.dom.Document dom)
Gets the system ID from which the given DOM is parsed. |
java.lang.String[] |
listSystemIDs()
Gets all the system IDs of the documents. |
org.w3c.dom.Document |
parse(org.xml.sax.InputSource source,
boolean root)
|
org.w3c.dom.Document |
parse(java.lang.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.util.Set<java.lang.String> rootDocuments
protected final java.util.Set<java.lang.String> externalReferences
protected final java.util.Map<java.lang.String,org.w3c.dom.Document> core
protected final ErrorReceiver errorReceiver
protected final java.util.List<org.w3c.dom.Element> inlinedSchemaElements
public final LocatorTable locatorTable
protected final org.xml.sax.EntityResolver entityResolver
public final java.util.Set<org.w3c.dom.Element> outerMostBindings
protected final InternalizationLogic logic
protected final WsimportOptions options
protected java.util.Map<java.lang.String,java.lang.String> resolvedCache
| Constructor Detail |
|---|
public DOMForest(InternalizationLogic logic,
@NotNull
org.xml.sax.EntityResolver entityResolver,
WsimportOptions options,
ErrorReceiver errReceiver)
| Method Detail |
|---|
public java.util.List<org.w3c.dom.Element> getInlinedSchemaElement()
@NotNull
public org.w3c.dom.Document parse(org.xml.sax.InputSource source,
boolean root)
throws org.xml.sax.SAXException,
java.io.IOException
org.xml.sax.SAXException
java.io.IOException
public org.w3c.dom.Document parse(java.lang.String systemId,
boolean root)
throws org.xml.sax.SAXException,
java.io.IOException
org.xml.sax.SAXException
java.io.IOExceptionpublic java.util.Map<java.lang.String,java.lang.String> getReferencedEntityMap()
public void addExternalReferences(java.lang.String ref)
public java.util.Set<java.lang.String> getExternalReferences()
public org.w3c.dom.Document get(java.lang.String systemId)
public java.lang.String[] listSystemIDs()
public java.lang.String getSystemId(org.w3c.dom.Document dom)
public java.lang.String getFirstRootDocument()
rootDocuments.
public java.util.Set<java.lang.String> getRootDocuments()
public void dump(java.io.OutputStream out)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||