|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.om.impl.builder.StAXBuilder
org.apache.axiom.om.impl.builder.StAXOMBuilder
public class StAXOMBuilder
Constructs an OM without using SOAP specific classes like SOAPEnvelope, SOAPHeader, SOAPHeaderBlock and SOAPBody. This has the document concept also.
Field Summary | |
---|---|
private boolean |
doTrace
|
private static org.apache.commons.logging.Log |
log
Field document |
(package private) int |
lookAheadToken
|
(package private) boolean |
namespaceURIInterning
|
private static int |
nsCount
|
Fields inherited from class org.apache.axiom.om.impl.builder.StAXBuilder |
---|
_isClosed, _releaseParserOnClose, cache, charEncoding, customBuilderForPayload, customBuilders, document, done, elementLevel, isDataHandlerAware, lastNode, maxDepthForCustomBuilders, omfactory, parser, parserAccessed |
Constructor Summary | |
---|---|
StAXOMBuilder()
Init() *must* be called after creating the builder using this constructor. |
|
StAXOMBuilder(java.io.InputStream inStream)
|
|
StAXOMBuilder(OMFactory ombuilderFactory,
javax.xml.stream.XMLStreamReader parser)
Constructor StAXOMBuilder. |
|
StAXOMBuilder(OMFactory factory,
javax.xml.stream.XMLStreamReader parser,
OMElement element)
Constructor linked to existing element. |
|
StAXOMBuilder(OMFactory factory,
javax.xml.stream.XMLStreamReader parser,
OMElement element,
java.lang.String characterEncoding)
Constructor linked to existing element. |
|
StAXOMBuilder(java.lang.String filePath)
|
|
StAXOMBuilder(javax.xml.stream.XMLStreamReader parser)
Constructor StAXOMBuilder. |
Method Summary | |
---|---|
protected OMNode |
createComment()
Method createOMText. |
protected OMNode |
createDTD()
Method createDTD. |
protected OMNode |
createNextOMElement()
Creates a new OMElement using either a CustomBuilder or the default Builder mechanism. |
protected OMNode |
createOMElement()
Method createOMElement. |
protected OMNode |
createPI()
Method createPI. |
protected java.lang.String |
createPrefix()
|
protected OMNode |
createWithCustomBuilder(CustomBuilder customBuilder,
OMFactory factory)
|
protected void |
endElement()
|
OMElement |
getDocumentElement()
Method getDocumentElement. |
boolean |
isLookahead()
|
boolean |
isNamespaceURIInterning()
|
boolean |
lookahead()
This method looks ahead to the next start element. |
int |
next()
Method next. |
private int |
parserNext()
Pushes the virtual parser ahead one token. |
private void |
populateOMElement(OMElement node)
Populate element with data from parser START_ELEMENT event. |
protected void |
processNamespaceData(OMElement node)
Method processNamespaceData. |
void |
setDoDebug(boolean doDebug)
Deprecated. |
void |
setNamespaceURIInterning(boolean b)
Set namespace uri interning |
Methods inherited from class org.apache.axiom.om.impl.builder.StAXBuilder |
---|
close, createOMText, discard, getAttributeCount, getAttributeName, getAttributeNamespace, getAttributePrefix, getBuilderType, getCharacterEncoding, getCharsetEncoding, getCustomBuilder, getDocument, getLastNode, getName, getNamespace, getNamespaceCount, getNamespacePrefix, getNamespaceUri, getParser, getPrefix, getReaderProperty, getRegisteredContentHandler, getText, init, isCache, isClosed, isCompleted, processAttributes, registerCustomBuilder, registerCustomBuilderForPayload, registerExternalContentHandler, releaseParserOnClose, reset, setCache, setOMBuilderFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.commons.logging.Log log
private boolean doTrace
private static int nsCount
boolean namespaceURIInterning
int lookAheadToken
Constructor Detail |
---|
public StAXOMBuilder(OMFactory ombuilderFactory, javax.xml.stream.XMLStreamReader parser)
ombuilderFactory
- parser
- public StAXOMBuilder(OMFactory factory, javax.xml.stream.XMLStreamReader parser, OMElement element, java.lang.String characterEncoding)
factory
- parser
- element
- characterEncoding
- of existing elementpublic StAXOMBuilder(OMFactory factory, javax.xml.stream.XMLStreamReader parser, OMElement element)
factory
- parser
- element
- public StAXOMBuilder(java.lang.String filePath) throws javax.xml.stream.XMLStreamException, java.io.FileNotFoundException
filePath
- - Path to the XML file
javax.xml.stream.XMLStreamException
java.io.FileNotFoundException
public StAXOMBuilder(javax.xml.stream.XMLStreamReader parser)
parser
- public StAXOMBuilder(java.io.InputStream inStream) throws javax.xml.stream.XMLStreamException
inStream
- - instream which contains the XML
javax.xml.stream.XMLStreamException
public StAXOMBuilder()
Method Detail |
---|
public int next() throws OMException
next
in interface OMXMLParserWrapper
next
in class StAXBuilder
OMException
protected OMNode createNextOMElement()
protected OMNode createWithCustomBuilder(CustomBuilder customBuilder, OMFactory factory)
private void populateOMElement(OMElement node)
node
- element to be populatedprotected OMNode createOMElement() throws OMException
createOMElement
in class StAXBuilder
OMException
protected OMNode createComment() throws OMException
OMException
protected OMNode createDTD() throws OMException
OMException
protected OMNode createPI() throws OMException
OMException
protected void endElement()
public OMElement getDocumentElement()
protected void processNamespaceData(OMElement node)
processNamespaceData
in class StAXBuilder
node
- public void setDoDebug(boolean doDebug)
doDebug
- protected java.lang.String createPrefix()
public void setNamespaceURIInterning(boolean b)
b
- public boolean isNamespaceURIInterning()
private int parserNext() throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public boolean lookahead()
public boolean isLookahead()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |