@Singleton @Visibility(value=LOCAL) public class DomXmlParser extends Object implements XmlServiceParser
DEFAULT_PARSING_SERVICE| Constructor and Description |
|---|
DomXmlParser() |
| Modifier and Type | Method and Description |
|---|---|
PreGenerationRequirement |
getPreGenerationRequirement()
This tells the system whether or not it needs to pregenerate all proxies
prior to parsing a document or if the proxies can be generated lazily
|
<T> void |
marshall(OutputStream outputStream,
XmlRootHandle<T> root)
Marshalls this tree into the given stream.
|
<T> T |
parseRoot(Model rootModel,
URI location,
Unmarshaller.Listener listener)
This method must return an instance of the given class as the root of
an XML graph
|
public <T> T parseRoot(Model rootModel, URI location, Unmarshaller.Listener listener) throws Exception
XmlServiceParserparseRoot in interface XmlServiceParserrootModel - The Model object of the root to be parsedlocation - The location of the file to parselistener - A listener that must be called via the contract of Unmarshaller.ListenerExceptionpublic PreGenerationRequirement getPreGenerationRequirement()
XmlServiceParsergetPreGenerationRequirement in interface XmlServiceParserpublic <T> void marshall(OutputStream outputStream, XmlRootHandle<T> root) throws IOException
XmlServiceParsermarshall in interface XmlServiceParseroutputStream - A non-closed output stream. This method will
not close the output streamroot - The root of the tree to marshallIOException - On any exception that might happenCopyright © 2009-2016 Oracle Corporation. All Rights Reserved.