|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.om.impl.llom.OMNodeImpl
org.apache.axiom.om.impl.llom.OMElementImpl
org.apache.axiom.om.impl.llom.OMSourcedElementImpl
public class OMSourcedElementImpl
Element backed by an arbitrary data source. When necessary, this element will be expanded by creating a parser from the data source.
Whenever methods are added to the base OMElementImpl
class the corresponding methods must be added to this class (there's a unit test to verify that
this has been done, just to make sure nothing gets accidentally broken). If the method only
requires the element name and/or namespace information, the base class method can be called
directly. Otherwise, the element must be expanded into a full OM tree (by calling the forceExpand()
method) before the base class method is called. This will typically involve a
heavy overhead penalty, so should be avoided if possible.
Field Summary | |
---|---|
private org.apache.axiom.om.OMDataSource |
dataSource
Data source for element data. |
private org.apache.axiom.om.OMNamespace |
definedNamespace
Namespace for element, needed in order to bypass base class handling. |
private static boolean |
isDebugEnabled
|
private boolean |
isExpanded
Flag for parser provided to base element class. |
private static org.apache.commons.logging.Log |
log
|
private javax.xml.stream.XMLStreamReader |
readerFromDS
|
Fields inherited from class org.apache.axiom.om.impl.llom.OMElementImpl |
---|
attributes, DEFAULT_DEFAULT_NS_OBJECT, firstChild, lastChild, localName, namespaces, noPrefixNamespaceCounter, ns, xmlns |
Fields inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl |
---|
builder, done, factory, nextSibling, nodeType, parent, previousSibling |
Fields inherited from interface org.apache.axiom.om.OMNode |
---|
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE |
Fields inherited from interface org.apache.axiom.om.OMConstants |
---|
ARRAY_ITEM_LOCALNAME, ARRAY_ITEM_NS_PREFIX, ARRAY_ITEM_NSURI, ARRAY_ITEM_QNAME, DATA_HANDLER, DEFAULT_CHAR_SET_ENCODING, DEFAULT_DEFAULT_NAMESPACE, DEFAULT_XML_VERSION, IS_BINARY, IS_DATA_HANDLERS_AWARE, PULL_TYPE_BUILDER, PUSH_TYPE_BUILDER, XMLNS_NS_PREFIX, XMLNS_NS_URI, XMLNS_PREFIX, XMLNS_URI |
Constructor Summary | |
---|---|
OMSourcedElementImpl(javax.xml.namespace.QName qName,
org.apache.axiom.om.OMFactory factory,
org.apache.axiom.om.OMDataSource source)
Constructor that takes a QName instead of the local name and the namespace seperately |
|
OMSourcedElementImpl(java.lang.String localName,
org.apache.axiom.om.OMNamespace ns,
org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory)
|
|
OMSourcedElementImpl(java.lang.String localName,
org.apache.axiom.om.OMNamespace ns,
org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMXMLParserWrapper builder,
org.apache.axiom.om.OMFactory factory)
|
|
OMSourcedElementImpl(java.lang.String localName,
org.apache.axiom.om.OMNamespace ns,
org.apache.axiom.om.OMFactory factory)
|
|
OMSourcedElementImpl(java.lang.String localName,
org.apache.axiom.om.OMNamespace ns,
org.apache.axiom.om.OMFactory factory,
org.apache.axiom.om.OMDataSource source)
Constructor. |
Method Summary | |
---|---|
org.apache.axiom.om.OMAttribute |
addAttribute(org.apache.axiom.om.OMAttribute attr)
Inserts an attribute to this element. |
org.apache.axiom.om.OMAttribute |
addAttribute(java.lang.String attributeName,
java.lang.String value,
org.apache.axiom.om.OMNamespace namespace)
Creates an OMAttributeImpl instance out of the given arguments and
inserts that attribute to this element. |
void |
addChild(org.apache.axiom.om.OMNode omNode)
Adds child to the element. |
void |
build()
Parses this node and builds the object structure in memory. |
void |
buildNext()
Forces the parser to proceed, if parser has not yet finished with the XML input. |
void |
buildWithAttachments()
Parses this node and builds the object structure in memory. |
org.apache.axiom.om.OMElement |
cloneOMElement()
|
org.apache.axiom.om.OMNamespace |
declareDefaultNamespace(java.lang.String uri)
We use "" to store the default namespace of this element. |
org.apache.axiom.om.OMNamespace |
declareNamespace(org.apache.axiom.om.OMNamespace namespace)
|
org.apache.axiom.om.OMNamespace |
declareNamespace(java.lang.String uri,
java.lang.String prefix)
Creates a namespace in the current element scope. |
org.apache.axiom.om.OMNode |
detach()
Removes this information item and its children, from the model completely. |
void |
discard()
Method discard. |
org.apache.axiom.om.OMNamespace |
findNamespace(java.lang.String uri,
java.lang.String prefix)
Finds a namespace with the given uri and prefix, in the scope of the document. |
org.apache.axiom.om.OMNamespace |
findNamespaceURI(java.lang.String prefix)
|
private void |
forceExpand()
Set parser for OM, if not previously set. |
java.util.Iterator |
getAllAttributes()
Returns a List of OMAttributes. |
java.util.Iterator |
getAllDeclaredNamespaces()
Method getAllDeclaredNamespaces. |
org.apache.axiom.om.OMAttribute |
getAttribute(javax.xml.namespace.QName qname)
Returns a named attribute if present. |
java.lang.String |
getAttributeValue(javax.xml.namespace.QName qname)
Returns a named attribute's value, if present. |
org.apache.axiom.om.OMXMLParserWrapper |
getBuilder()
Method getBuilder. |
java.util.Iterator |
getChildElements()
Returns a filtered list of children - just the elements. |
java.util.Iterator |
getChildren()
Returns a collection of this element. |
java.util.Iterator |
getChildrenWithLocalName(java.lang.String localName)
|
java.util.Iterator |
getChildrenWithName(javax.xml.namespace.QName elementQName)
Searches for children with a given QName and returns an iterator to traverse through the OMNodes. |
java.util.Iterator |
getChildrenWithNamespaceURI(java.lang.String uri)
|
org.apache.axiom.om.OMDataSource |
getDataSource()
Provide access to the data source encapsulated in OMSourcedElement. |
org.apache.axiom.om.OMNamespace |
getDefaultNamespace()
|
private javax.xml.stream.XMLStreamReader |
getDirectReader()
Get parser from data source. |
org.apache.axiom.om.OMElement |
getFirstChildWithName(javax.xml.namespace.QName elementQName)
Method getFirstChildWithName. |
org.apache.axiom.om.OMElement |
getFirstElement()
Gets first element. |
org.apache.axiom.om.OMNode |
getFirstOMChild()
Method getFirstOMChild. |
int |
getLineNumber()
|
java.lang.String |
getLocalName()
Method getLocalName. |
org.apache.axiom.om.OMNamespace |
getNamespace()
Method getNamespace. |
org.apache.axiom.om.OMNode |
getNextOMSibling()
Gets the next sibling. |
private java.lang.String |
getPrintableName()
Generate element name for output. |
javax.xml.namespace.QName |
getQName()
Method getQName. |
java.lang.String |
getText()
Selects all the text children and concatenates them to a single string. |
javax.xml.namespace.QName |
getTextAsQName()
|
java.lang.String |
getTrimmedText()
Returns the concatination string of TRIMMED values of all OMText child nodes of this element. |
int |
getType()
Gets the type of node, as this is the super class of all the nodes. |
javax.xml.stream.XMLStreamReader |
getXMLStreamReader()
Method getXMLStreamReader. |
javax.xml.stream.XMLStreamReader |
getXMLStreamReaderWithoutCaching()
Method getXMLStreamReaderWithoutCaching. |
(package private) org.apache.axiom.om.OMNamespace |
handleNamespace(javax.xml.namespace.QName qname)
Method handleNamespace. |
(package private) org.apache.axiom.om.OMNamespace |
handleNamespace(java.lang.String namespaceURI,
java.lang.String prefix)
|
void |
internalSerialize(javax.xml.stream.XMLStreamWriter writer)
Method internalSerialize. |
protected void |
internalSerialize(javax.xml.stream.XMLStreamWriter writer,
boolean cache)
|
void |
internalSerializeAndConsume(javax.xml.stream.XMLStreamWriter writer)
This method serializes and consumes without building the object structure in memory. |
boolean |
isComplete()
Method isComplete. |
private boolean |
isDestructiveRead()
|
private boolean |
isDestructiveWrite()
|
boolean |
isExpanded()
Check if element has been expanded into tree. |
protected void |
notifyChildComplete()
This method will be called when one of the children becomes complete. |
void |
removeAttribute(org.apache.axiom.om.OMAttribute attr)
Method removeAttribute. |
javax.xml.namespace.QName |
resolveQName(java.lang.String qname)
Converts a prefix:local qname string into a proper QName, evaluating it in the OMElement context. |
void |
serialize(java.io.OutputStream output)
|
void |
serialize(java.io.OutputStream output,
org.apache.axiom.om.OMOutputFormat format)
|
void |
serialize(java.io.Writer writer)
|
void |
serialize(java.io.Writer writer,
org.apache.axiom.om.OMOutputFormat format)
|
void |
serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
Serializes the node with caching. |
void |
serializeAndConsume(java.io.OutputStream output)
|
void |
serializeAndConsume(java.io.OutputStream output,
org.apache.axiom.om.OMOutputFormat format)
|
void |
serializeAndConsume(java.io.Writer writer)
|
void |
serializeAndConsume(java.io.Writer writer,
org.apache.axiom.om.OMOutputFormat format)
|
void |
serializeAndConsume(javax.xml.stream.XMLStreamWriter xmlWriter)
Serializes the node without caching. |
void |
setBuilder(org.apache.axiom.om.OMXMLParserWrapper wrapper)
Method setBuilder. |
void |
setComplete(boolean value)
setComplete override The OMSourcedElement has its own isolated builder/reader during the expansion process. |
org.apache.axiom.om.OMDataSource |
setDataSource(org.apache.axiom.om.OMDataSource dataSource)
setOMDataSource |
void |
setFirstChild(org.apache.axiom.om.OMNode node)
Method setFirstChild. |
void |
setLastChild(org.apache.axiom.om.OMNode omNode)
|
void |
setLineNumber(int lineNumber)
|
void |
setLocalName(java.lang.String localName)
Method setLocalName. |
void |
setNamespace(org.apache.axiom.om.OMNamespace namespace)
Method setNamespace. |
void |
setNamespaceWithNoFindInCurrentScope(org.apache.axiom.om.OMNamespace namespace)
|
void |
setText(javax.xml.namespace.QName text)
Sets the text, as a QName, of the given element. |
void |
setText(java.lang.String text)
Sets the text of the given element. |
java.lang.String |
toString()
|
java.lang.String |
toStringWithConsume()
|
Methods inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl |
---|
close, getOMFactory, getParent, getPreviousOMSibling, importNode, insertSiblingAfter, insertSiblingBefore, setNextOMSibling, setParent, setPreviousOMSibling, setType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.axiom.om.OMNode |
---|
close, getOMFactory, getParent, getPreviousOMSibling, insertSiblingAfter, insertSiblingBefore |
Field Detail |
---|
private org.apache.axiom.om.OMDataSource dataSource
private org.apache.axiom.om.OMNamespace definedNamespace
private boolean isExpanded
private static org.apache.commons.logging.Log log
private static final boolean isDebugEnabled
private javax.xml.stream.XMLStreamReader readerFromDS
Constructor Detail |
---|
public OMSourcedElementImpl(java.lang.String localName, org.apache.axiom.om.OMNamespace ns, org.apache.axiom.om.OMFactory factory, org.apache.axiom.om.OMDataSource source)
localName
- ns
- factory
- source
- public OMSourcedElementImpl(javax.xml.namespace.QName qName, org.apache.axiom.om.OMFactory factory, org.apache.axiom.om.OMDataSource source)
qName
- factory
- source
- public OMSourcedElementImpl(java.lang.String localName, org.apache.axiom.om.OMNamespace ns, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMFactory factory)
public OMSourcedElementImpl(java.lang.String localName, org.apache.axiom.om.OMNamespace ns, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMXMLParserWrapper builder, org.apache.axiom.om.OMFactory factory)
public OMSourcedElementImpl(java.lang.String localName, org.apache.axiom.om.OMNamespace ns, org.apache.axiom.om.OMFactory factory)
Method Detail |
---|
private java.lang.String getPrintableName()
private javax.xml.stream.XMLStreamReader getDirectReader()
private void forceExpand()
public boolean isExpanded()
isExpanded
in interface org.apache.axiom.om.OMSourcedElement
true
if expanded, false
if notpublic java.util.Iterator getChildElements()
OMElementImpl
getChildElements
in interface org.apache.axiom.om.OMElement
getChildElements
in class OMElementImpl
public org.apache.axiom.om.OMNamespace declareNamespace(java.lang.String uri, java.lang.String prefix)
OMElementImpl
declareNamespace
in interface org.apache.axiom.om.OMElement
declareNamespace
in class OMElementImpl
public org.apache.axiom.om.OMNamespace declareDefaultNamespace(java.lang.String uri)
OMElementImpl
declareDefaultNamespace
in interface org.apache.axiom.om.OMElement
declareDefaultNamespace
in class OMElementImpl
public org.apache.axiom.om.OMNamespace getDefaultNamespace()
getDefaultNamespace
in interface org.apache.axiom.om.OMElement
getDefaultNamespace
in class OMElementImpl
public org.apache.axiom.om.OMNamespace declareNamespace(org.apache.axiom.om.OMNamespace namespace)
declareNamespace
in interface org.apache.axiom.om.OMElement
declareNamespace
in class OMElementImpl
public org.apache.axiom.om.OMNamespace findNamespace(java.lang.String uri, java.lang.String prefix)
OMElementImpl
findNamespace
in interface org.apache.axiom.om.OMElement
findNamespace
in class OMElementImpl
public org.apache.axiom.om.OMNamespace findNamespaceURI(java.lang.String prefix)
findNamespaceURI
in interface org.apache.axiom.om.OMElement
findNamespaceURI
in class OMElementImpl
public java.util.Iterator getAllDeclaredNamespaces() throws org.apache.axiom.om.OMException
OMElementImpl
getAllDeclaredNamespaces
in interface org.apache.axiom.om.OMElement
getAllDeclaredNamespaces
in class OMElementImpl
org.apache.axiom.om.OMException
public java.util.Iterator getAllAttributes()
OMElementImpl
getAllAttributes
in interface org.apache.axiom.om.OMElement
getAllAttributes
in class OMElementImpl
public org.apache.axiom.om.OMAttribute getAttribute(javax.xml.namespace.QName qname)
OMElementImpl
getAttribute
in interface org.apache.axiom.om.OMElement
getAttribute
in class OMElementImpl
qname
- the qualified name to search for
public java.lang.String getAttributeValue(javax.xml.namespace.QName qname)
OMElementImpl
getAttributeValue
in interface org.apache.axiom.om.OMElement
getAttributeValue
in class OMElementImpl
qname
- the qualified name to search for
public org.apache.axiom.om.OMAttribute addAttribute(org.apache.axiom.om.OMAttribute attr)
OMElementImpl
The owner of the attribute is set to be the particular OMElement
.
If the attribute already has an owner then the attribute is cloned (i.e. its name,
value and namespace are copied to a new attribute) and the new attribute is added
to the element. It's owner is then set to be the particular OMElement
.
addAttribute
in interface org.apache.axiom.om.OMElement
addAttribute
in class OMElementImpl
OMAttributeImpl.equals(Object)
public org.apache.axiom.om.OMAttribute addAttribute(java.lang.String attributeName, java.lang.String value, org.apache.axiom.om.OMNamespace namespace)
OMElementImpl
OMAttributeImpl
instance out of the given arguments and
inserts that attribute to this element. Implementor can decide as to insert this
in the front or at the end of set of attributes.
The owner of the attribute is set to be the particular OMElement
.
If the attribute already has an owner then the attribute is cloned (i.e. its name,
value and namespace are copied to a new attribute) and the new attribute is added
to the element. It's owner is then set to be the particular OMElement
.
addAttribute
in interface org.apache.axiom.om.OMElement
addAttribute
in class OMElementImpl
attributeName
- The name of the attributevalue
- The value of the attributenamespace
- The namespace of the attribute
OMAttributeImpl.equals(Object)
public void removeAttribute(org.apache.axiom.om.OMAttribute attr)
OMElementImpl
removeAttribute
in interface org.apache.axiom.om.OMElement
removeAttribute
in class OMElementImpl
public void setBuilder(org.apache.axiom.om.OMXMLParserWrapper wrapper)
OMElementImpl
setBuilder
in interface org.apache.axiom.om.OMElement
setBuilder
in class OMElementImpl
public org.apache.axiom.om.OMXMLParserWrapper getBuilder()
OMElementImpl
getBuilder
in interface org.apache.axiom.om.OMElement
getBuilder
in class OMElementImpl
public void setFirstChild(org.apache.axiom.om.OMNode node)
OMElementImpl
setFirstChild
in interface org.apache.axiom.om.impl.OMContainerEx
setFirstChild
in interface org.apache.axiom.om.OMElement
setFirstChild
in class OMElementImpl
public void setLastChild(org.apache.axiom.om.OMNode omNode)
setLastChild
in interface org.apache.axiom.om.impl.OMContainerEx
setLastChild
in class OMElementImpl
public org.apache.axiom.om.OMElement getFirstElement()
OMElementImpl
getFirstElement
in interface org.apache.axiom.om.OMElement
getFirstElement
in class OMElementImpl
public javax.xml.stream.XMLStreamReader getXMLStreamReader()
OMElementImpl
getXMLStreamReader
in interface org.apache.axiom.om.OMElement
getXMLStreamReader
in class OMElementImpl
OMElement.getXMLStreamReader()
public javax.xml.stream.XMLStreamReader getXMLStreamReaderWithoutCaching()
OMElementImpl
getXMLStreamReaderWithoutCaching
in interface org.apache.axiom.om.OMElement
getXMLStreamReaderWithoutCaching
in class OMElementImpl
OMElement.getXMLStreamReaderWithoutCaching()
public void setText(java.lang.String text)
OMElementImpl
setText
in interface org.apache.axiom.om.OMElement
setText
in class OMElementImpl
public void setText(javax.xml.namespace.QName text)
OMElementImpl
setText
in interface org.apache.axiom.om.OMElement
setText
in class OMElementImpl
public java.lang.String getText()
OMElementImpl
getText
in interface org.apache.axiom.om.OMElement
getText
in class OMElementImpl
public javax.xml.namespace.QName getTextAsQName()
getTextAsQName
in interface org.apache.axiom.om.OMElement
getTextAsQName
in class OMElementImpl
public java.lang.String getLocalName()
OMElementImpl
getLocalName
in interface org.apache.axiom.om.OMElement
getLocalName
in class OMElementImpl
public void setLocalName(java.lang.String localName)
OMElementImpl
setLocalName
in interface org.apache.axiom.om.OMElement
setLocalName
in class OMElementImpl
public org.apache.axiom.om.OMNamespace getNamespace() throws org.apache.axiom.om.OMException
OMElementImpl
getNamespace
in interface org.apache.axiom.om.OMElement
getNamespace
in class OMElementImpl
org.apache.axiom.om.OMException
public void setNamespace(org.apache.axiom.om.OMNamespace namespace)
OMElementImpl
setNamespace
in interface org.apache.axiom.om.OMElement
setNamespace
in class OMElementImpl
public void setNamespaceWithNoFindInCurrentScope(org.apache.axiom.om.OMNamespace namespace)
setNamespaceWithNoFindInCurrentScope
in interface org.apache.axiom.om.OMElement
setNamespaceWithNoFindInCurrentScope
in class OMElementImpl
public javax.xml.namespace.QName getQName()
OMElementImpl
getQName
in interface org.apache.axiom.om.OMElement
getQName
in class OMElementImpl
public java.lang.String toStringWithConsume() throws javax.xml.stream.XMLStreamException
toStringWithConsume
in interface org.apache.axiom.om.OMElement
toStringWithConsume
in class OMElementImpl
javax.xml.stream.XMLStreamException
private boolean isDestructiveWrite()
private boolean isDestructiveRead()
public javax.xml.namespace.QName resolveQName(java.lang.String qname)
OMElementImpl
resolveQName
in interface org.apache.axiom.om.OMElement
resolveQName
in class OMElementImpl
qname
- prefixed qname string to resolve
public org.apache.axiom.om.OMElement cloneOMElement()
cloneOMElement
in interface org.apache.axiom.om.OMElement
cloneOMElement
in class OMElementImpl
public void setLineNumber(int lineNumber)
setLineNumber
in interface org.apache.axiom.om.OMElement
setLineNumber
in class OMElementImpl
public int getLineNumber()
getLineNumber
in interface org.apache.axiom.om.OMElement
getLineNumber
in class OMElementImpl
public void discard() throws org.apache.axiom.om.OMException
OMElementImpl
discard
in interface org.apache.axiom.om.OMNode
discard
in class OMElementImpl
org.apache.axiom.om.OMException
public int getType()
OMElementImpl
getType
in interface org.apache.axiom.om.OMNode
getType
in class OMElementImpl
OMNodeImpl.setType(int)
OMNodeImpl.setType(int)
public void internalSerialize(javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
OMElementImpl
internalSerialize
in interface org.apache.axiom.om.impl.OMNodeEx
internalSerialize
in class OMElementImpl
javax.xml.stream.XMLStreamException
protected void internalSerialize(javax.xml.stream.XMLStreamWriter writer, boolean cache) throws javax.xml.stream.XMLStreamException
internalSerialize
in class OMElementImpl
javax.xml.stream.XMLStreamException
public void internalSerializeAndConsume(javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
OMElementImpl
internalSerializeAndConsume
in interface org.apache.axiom.om.impl.OMNodeEx
internalSerializeAndConsume
in class OMElementImpl
javax.xml.stream.XMLStreamException
public void serialize(javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException
OMNodeImpl
serialize
in interface org.apache.axiom.om.OMNode
serialize
in class OMNodeImpl
javax.xml.stream.XMLStreamException
public void serialize(java.io.OutputStream output) throws javax.xml.stream.XMLStreamException
serialize
in interface org.apache.axiom.om.OMNode
serialize
in class OMNodeImpl
javax.xml.stream.XMLStreamException
public void serialize(java.io.Writer writer) throws javax.xml.stream.XMLStreamException
serialize
in interface org.apache.axiom.om.OMNode
serialize
in class OMNodeImpl
javax.xml.stream.XMLStreamException
public void serialize(java.io.OutputStream output, org.apache.axiom.om.OMOutputFormat format) throws javax.xml.stream.XMLStreamException
serialize
in interface org.apache.axiom.om.OMNode
serialize
in class OMNodeImpl
javax.xml.stream.XMLStreamException
public void serialize(java.io.Writer writer, org.apache.axiom.om.OMOutputFormat format) throws javax.xml.stream.XMLStreamException
serialize
in interface org.apache.axiom.om.OMNode
serialize
in class OMNodeImpl
javax.xml.stream.XMLStreamException
public void serializeAndConsume(javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException
OMNodeImpl
serializeAndConsume
in interface org.apache.axiom.om.OMNode
serializeAndConsume
in class OMNodeImpl
javax.xml.stream.XMLStreamException
public void serializeAndConsume(java.io.OutputStream output) throws javax.xml.stream.XMLStreamException
serializeAndConsume
in interface org.apache.axiom.om.OMNode
serializeAndConsume
in class OMNodeImpl
javax.xml.stream.XMLStreamException
public void serializeAndConsume(java.io.Writer writer) throws javax.xml.stream.XMLStreamException
serializeAndConsume
in interface org.apache.axiom.om.OMNode
serializeAndConsume
in class OMNodeImpl
javax.xml.stream.XMLStreamException
public void serializeAndConsume(java.io.OutputStream output, org.apache.axiom.om.OMOutputFormat format) throws javax.xml.stream.XMLStreamException
serializeAndConsume
in interface org.apache.axiom.om.OMNode
serializeAndConsume
in class OMNodeImpl
javax.xml.stream.XMLStreamException
public void serializeAndConsume(java.io.Writer writer, org.apache.axiom.om.OMOutputFormat format) throws javax.xml.stream.XMLStreamException
serializeAndConsume
in interface org.apache.axiom.om.OMNode
serializeAndConsume
in class OMNodeImpl
javax.xml.stream.XMLStreamException
public void addChild(org.apache.axiom.om.OMNode omNode)
OMElementImpl
addChild
in interface org.apache.axiom.om.OMContainer
addChild
in class OMElementImpl
public java.util.Iterator getChildrenWithName(javax.xml.namespace.QName elementQName)
OMElementImpl
getChildrenWithName
in interface org.apache.axiom.om.OMContainer
getChildrenWithName
in class OMElementImpl
public java.util.Iterator getChildrenWithLocalName(java.lang.String localName)
getChildrenWithLocalName
in interface org.apache.axiom.om.OMContainer
getChildrenWithLocalName
in class OMElementImpl
public java.util.Iterator getChildrenWithNamespaceURI(java.lang.String uri)
getChildrenWithNamespaceURI
in interface org.apache.axiom.om.OMContainer
getChildrenWithNamespaceURI
in class OMElementImpl
public org.apache.axiom.om.OMElement getFirstChildWithName(javax.xml.namespace.QName elementQName) throws org.apache.axiom.om.OMException
OMElementImpl
getFirstChildWithName
in interface org.apache.axiom.om.OMContainer
getFirstChildWithName
in class OMElementImpl
org.apache.axiom.om.OMException
public java.util.Iterator getChildren()
OMElementImpl
getChildren
in interface org.apache.axiom.om.OMContainer
getChildren
in class OMElementImpl
public org.apache.axiom.om.OMNode getFirstOMChild()
OMElementImpl
getFirstOMChild
in interface org.apache.axiom.om.OMContainer
getFirstOMChild
in class OMElementImpl
public void buildNext()
OMElementImpl
buildNext
in interface org.apache.axiom.om.OMContainer
buildNext
in class OMElementImpl
public org.apache.axiom.om.OMNode detach() throws org.apache.axiom.om.OMException
OMElementImpl
detach
in interface org.apache.axiom.om.OMNode
detach
in class OMElementImpl
org.apache.axiom.om.OMException
public org.apache.axiom.om.OMNode getNextOMSibling() throws org.apache.axiom.om.OMException
OMElementImpl
getNextOMSibling
in interface org.apache.axiom.om.OMNode
getNextOMSibling
in class OMElementImpl
org.apache.axiom.om.OMException
public java.lang.String getTrimmedText()
OMElementImpl
getTrimmedText
in class OMElementImpl
org.apache.axiom.om.OMNamespace handleNamespace(javax.xml.namespace.QName qname)
OMElementImpl
handleNamespace
in class OMElementImpl
public boolean isComplete()
OMElementImpl
isComplete
in interface org.apache.axiom.om.OMContainer
isComplete
in interface org.apache.axiom.om.OMNode
isComplete
in class OMElementImpl
public java.lang.String toString()
toString
in interface org.apache.axiom.om.OMElement
toString
in class OMElementImpl
public void buildWithAttachments()
OMNodeImpl
buildWithAttachments
in interface org.apache.axiom.om.OMNode
buildWithAttachments
in class OMElementImpl
public void build() throws org.apache.axiom.om.OMException
OMNodeImpl
build
in interface org.apache.axiom.om.OMNode
build
in class OMElementImpl
org.apache.axiom.om.OMException
protected void notifyChildComplete()
OMElementImpl
notifyChildComplete
in class OMElementImpl
org.apache.axiom.om.OMNamespace handleNamespace(java.lang.String namespaceURI, java.lang.String prefix)
handleNamespace
in class OMElementImpl
public org.apache.axiom.om.OMDataSource getDataSource()
getDataSource
in interface org.apache.axiom.om.OMSourcedElement
public org.apache.axiom.om.OMDataSource setDataSource(org.apache.axiom.om.OMDataSource dataSource)
setDataSource
in interface org.apache.axiom.om.OMSourcedElement
public void setComplete(boolean value)
setComplete
in interface org.apache.axiom.om.impl.OMContainerEx
setComplete
in interface org.apache.axiom.om.impl.OMNodeEx
setComplete
in class OMNodeImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |