|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.om.impl.llom.OMSerializableImpl
org.apache.axiom.om.impl.llom.OMNodeImpl
public abstract class OMNodeImpl
Class OMNodeImpl
Field Summary | |
---|---|
protected OMNodeImpl |
nextSibling
Field nextSibling |
protected int |
nodeType
Field nodeType |
protected OMContainerEx |
parent
Field parent |
protected OMNodeImpl |
previousSibling
Field previousSibling |
Fields inherited from class org.apache.axiom.om.impl.llom.OMSerializableImpl |
---|
builder, done, factory |
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 |
Constructor Summary | |
---|---|
OMNodeImpl(OMContainer parent,
OMFactory factory,
boolean done)
For a node to exist there must be a parent. |
|
OMNodeImpl(OMFactory factory)
Constructor OMNodeImpl |
Method Summary | |
---|---|
void |
buildWithAttachments()
Parses this node and builds the object structure in memory. |
OMNode |
detach()
Removes this information item and its children, from the model completely. |
OMNode |
getNextOMSibling()
Returns the next sibling. |
OMNode |
getNextOMSiblingIfAvailable()
Get the next sibling if it is available. |
OMContainer |
getParent()
Returns the immediate parent of the node. |
OMNode |
getPreviousOMSibling()
Gets the previous sibling. |
int |
getType()
Gets the type of node, as this is the super class of all the nodes. |
protected OMNode |
importNode(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(OMNode sibling)
Inserts a sibling just after the current information item. |
void |
insertSiblingBefore(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(OMNode node)
Method setNextOMSibling. |
void |
setParent(OMContainer element)
Method setParent. |
void |
setPreviousOMSibling(OMNode previousSibling)
Method setPreviousOMSibling. |
void |
setType(int nodeType)
Method setType. |
Methods inherited from class org.apache.axiom.om.impl.llom.OMSerializableImpl |
---|
build, close, getOMFactory, internalSerialize, isComplete, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.axiom.om.impl.OMNodeEx |
---|
internalSerialize |
Methods inherited from interface org.apache.axiom.om.OMNode |
---|
discard, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume |
Methods inherited from interface org.apache.axiom.om.OMSerializable |
---|
build, close, getOMFactory, isComplete, serialize, serialize, serializeAndConsume |
Field Detail |
---|
protected OMContainerEx parent
protected OMNodeImpl nextSibling
protected OMNodeImpl previousSibling
protected int nodeType
Constructor Detail |
---|
public OMNodeImpl(OMFactory factory)
factory
- The OMFactory
that created thispublic OMNodeImpl(OMContainer parent, OMFactory factory, boolean done)
parent
- Parent OMContainer
of this nodefactory
- The OMFactory
that created thisMethod Detail |
---|
public OMContainer getParent()
getParent
in interface OMNode
OMException
public void setParent(OMContainer element)
setParent
in interface OMNodeEx
element
- public OMNode getNextOMSibling() throws OMException
getNextOMSibling
in interface OMNode
OMException
public OMNode getNextOMSiblingIfAvailable()
OMNodeEx
OMSerializable.isComplete()
may return false
when called on the sibling.
In contrast to OMNode.getNextOMSibling()
, this method will never modify
the state of the underlying parser.
getNextOMSiblingIfAvailable
in interface OMNodeEx
null
if the node has no next sibling or
the builder has not yet started to build the next siblingpublic void setNextOMSibling(OMNode node)
setNextOMSibling
in interface OMNodeEx
node
- public void setComplete(boolean state)
setComplete
in interface OMNodeEx
setComplete
in class OMSerializableImpl
state
- public OMNode detach() throws OMException
detach
in interface OMNode
OMException
public void insertSiblingAfter(OMNode sibling) throws OMException
insertSiblingAfter
in interface OMNode
sibling
-
OMException
public void insertSiblingBefore(OMNode sibling) throws OMException
insertSiblingBefore
in interface OMNode
sibling
-
OMException
public int getType()
getType
in interface OMNode
setType(int)
setType(int)
public void setType(int nodeType) throws OMException
setType
in interface OMNodeEx
nodeType
-
OMException
public OMNode getPreviousOMSibling()
getPreviousOMSibling
in interface OMNode
public void setPreviousOMSibling(OMNode previousSibling)
setPreviousOMSibling
in interface OMNodeEx
previousSibling
- public void buildWithAttachments()
buildWithAttachments
in interface OMNode
protected OMNode importNode(OMNode child)
child
- public void internalSerialize(XMLStreamWriter writer) throws XMLStreamException
internalSerialize
in interface OMNodeEx
XMLStreamException
public void internalSerializeAndConsume(XMLStreamWriter writer) throws XMLStreamException
internalSerializeAndConsume
in interface OMNodeEx
XMLStreamException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |