|
||||||||||
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 Map<String,Document> |
core
actual data storage map<SystemId,Document>. |
protected ErrorReceiver |
errorReceiver
|
protected Set<String> |
externalReferences
Contains wsdl:import(s) |
protected List<Element> |
inlinedSchemaElements
inlined schema elements inside wsdl:type section |
com.sun.tools.xjc.reader.internalizer.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 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 Summary | |
---|---|
DOMForest(InternalizationLogic logic,
WsimportOptions options,
ErrorReceiver errReceiver)
|
Method Summary | |
---|---|
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()
|
DOMForest.Handler |
getParserHandler(String systemId,
boolean root)
Returns a ContentHandler to feed SAX events into. |
Set<String> |
getRootDocuments()
|
String |
getSystemId(Document dom)
Gets the system ID from which the given DOM is parsed. |
(package private) boolean |
isExtensionMode()
|
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. |
Document |
parse(String systemId,
InputSource inputSource,
boolean root)
Parses the given document and add it to the DOM forest. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Set<String> rootDocuments
protected final Set<String> externalReferences
protected final Map<String,Document> core
protected final WsimportOptions options
protected final ErrorReceiver errorReceiver
protected final List<Element> inlinedSchemaElements
public final com.sun.tools.xjc.reader.internalizer.LocatorTable locatorTable
public final Set<Element> outerMostBindings
protected final InternalizationLogic logic
Constructor Detail |
---|
public DOMForest(InternalizationLogic logic, WsimportOptions options, ErrorReceiver errReceiver)
Method Detail |
---|
public List<Element> getInlinedSchemaElement()
@NotNull public Document parse(InputSource source, boolean root) throws SAXException, IOException
SAXException
IOException
public Document parse(String systemId, boolean root) throws SAXException, IOException
SAXException
IOException
@NotNull public Document parse(String systemId, InputSource inputSource, boolean root) throws SAXException, IOException
SAXException
IOException
public void addExternalReferences(String ref)
public Set<String> getExternalReferences()
public DOMForest.Handler getParserHandler(String systemId, boolean root)
ContentHandler
to feed SAX events into.
The client of this class can feed SAX events into the handler
to parse a document into this DOM forest.
boolean isExtensionMode()
public Document get(String systemId)
public String[] listSystemIDs()
public String getSystemId(Document dom)
public String getFirstRootDocument()
rootDocuments
.
public Set<String> getRootDocuments()
public void dump(OutputStream out) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |