public abstract class OMNodeImpl extends OMSerializableImpl implements org.apache.axiom.om.OMNode, org.apache.axiom.om.impl.OMNodeEx
| Modifier and Type | Field and Description |
|---|---|
protected OMNodeImpl |
nextSibling
Field nextSibling
|
protected int |
nodeType
Field nodeType
|
protected org.apache.axiom.om.impl.OMContainerEx |
parent
Field parent
|
protected OMNodeImpl |
previousSibling
Field previousSibling
|
builder, done, factory| Constructor and Description |
|---|
OMNodeImpl(org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory,
boolean done)
For a node to exist there must be a parent.
|
OMNodeImpl(org.apache.axiom.om.OMFactory factory)
Constructor OMNodeImpl
|
| Modifier and Type | Method and Description |
|---|---|
void |
buildWithAttachments()
Parses this node and builds the object structure in memory.
|
org.apache.axiom.om.OMNode |
detach()
Removes this information item and its children, from the model completely.
|
org.apache.axiom.om.OMNode |
getNextOMSibling()
Returns the next sibling.
|
org.apache.axiom.om.OMNode |
getNextOMSiblingIfAvailable() |
org.apache.axiom.om.OMContainer |
getParent()
Returns the immediate parent of the node.
|
org.apache.axiom.om.OMNode |
getPreviousOMSibling()
Gets the previous sibling.
|
int |
getType()
Gets the type of node, as this is the super class of all the nodes.
|
protected org.apache.axiom.om.OMNode |
importNode(org.apache.axiom.om.OMNode child)
This method is intended only to be used by Axiom intenals when merging Objects from different
Axiom implementations to the LLOM implementation.
|
void |
insertSiblingAfter(org.apache.axiom.om.OMNode sibling)
Inserts a sibling just after the current information item.
|
void |
insertSiblingBefore(org.apache.axiom.om.OMNode sibling)
Inserts a sibling just before the current information item.
|
void |
internalSerialize(XMLStreamWriter writer) |
void |
internalSerializeAndConsume(XMLStreamWriter writer) |
void |
setComplete(boolean state)
Method setComplete.
|
void |
setNextOMSibling(org.apache.axiom.om.OMNode node)
Method setNextOMSibling.
|
void |
setParent(org.apache.axiom.om.OMContainer element)
Method setParent.
|
void |
setPreviousOMSibling(org.apache.axiom.om.OMNode previousSibling)
Method setPreviousOMSibling.
|
void |
setType(int nodeType)
Method setType.
|
build, close, getOMFactory, internalSerialize, isComplete, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsumeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected org.apache.axiom.om.impl.OMContainerEx parent
protected OMNodeImpl nextSibling
protected OMNodeImpl previousSibling
protected int nodeType
public OMNodeImpl(org.apache.axiom.om.OMFactory factory)
factory - The OMFactory that created thispublic OMNodeImpl(org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory,
boolean done)
parent - Parent OMContainer of this nodefactory - The OMFactory that created thispublic org.apache.axiom.om.OMContainer getParent()
getParent in interface org.apache.axiom.om.OMNodeorg.apache.axiom.om.OMExceptionpublic void setParent(org.apache.axiom.om.OMContainer element)
setParent in interface org.apache.axiom.om.impl.OMNodeExelement - public org.apache.axiom.om.OMNode getNextOMSibling()
throws org.apache.axiom.om.OMException
getNextOMSibling in interface org.apache.axiom.om.OMNodeorg.apache.axiom.om.OMExceptionpublic org.apache.axiom.om.OMNode getNextOMSiblingIfAvailable()
getNextOMSiblingIfAvailable in interface org.apache.axiom.om.impl.OMNodeExpublic void setNextOMSibling(org.apache.axiom.om.OMNode node)
setNextOMSibling in interface org.apache.axiom.om.impl.OMNodeExnode - public void setComplete(boolean state)
setComplete in interface org.apache.axiom.om.impl.OMNodeExsetComplete in class OMSerializableImplstate - public org.apache.axiom.om.OMNode detach()
throws org.apache.axiom.om.OMException
detach in interface org.apache.axiom.om.OMNodeorg.apache.axiom.om.OMExceptionpublic void insertSiblingAfter(org.apache.axiom.om.OMNode sibling)
throws org.apache.axiom.om.OMException
insertSiblingAfter in interface org.apache.axiom.om.OMNodesibling - org.apache.axiom.om.OMExceptionpublic void insertSiblingBefore(org.apache.axiom.om.OMNode sibling)
throws org.apache.axiom.om.OMException
insertSiblingBefore in interface org.apache.axiom.om.OMNodesibling - org.apache.axiom.om.OMExceptionpublic int getType()
getType in interface org.apache.axiom.om.OMNodesetType(int)setType(int)public void setType(int nodeType)
throws org.apache.axiom.om.OMException
setType in interface org.apache.axiom.om.impl.OMNodeExnodeType - org.apache.axiom.om.OMExceptionpublic org.apache.axiom.om.OMNode getPreviousOMSibling()
getPreviousOMSibling in interface org.apache.axiom.om.OMNodepublic void setPreviousOMSibling(org.apache.axiom.om.OMNode previousSibling)
setPreviousOMSibling in interface org.apache.axiom.om.impl.OMNodeExpreviousSibling - public void buildWithAttachments()
buildWithAttachments in interface org.apache.axiom.om.OMNodeprotected org.apache.axiom.om.OMNode importNode(org.apache.axiom.om.OMNode child)
child - public void internalSerialize(XMLStreamWriter writer) throws XMLStreamException
internalSerialize in interface org.apache.axiom.om.impl.OMNodeExXMLStreamExceptionpublic void internalSerializeAndConsume(XMLStreamWriter writer) throws XMLStreamException
internalSerializeAndConsume in interface org.apache.axiom.om.impl.OMNodeExXMLStreamExceptionCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.