|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis2.om.impl.llom.OMNodeImpl
Class OMNodeImpl
Field Summary | |
protected OMXMLParserWrapper |
builder
Field builder |
protected boolean |
done
Field done |
protected OMNodeImpl |
nextSibling
Field nextSibling |
protected int |
nodeType
Field nodeType |
protected OMContainerEx |
parent
Field parent |
protected OMNodeImpl |
previousSibling
Field previousSibling |
Fields inherited from interface org.apache.axis2.om.OMNode |
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE |
Constructor Summary | |
OMNodeImpl()
Constructor OMNodeImpl |
|
OMNodeImpl(OMContainer parent)
For a node to exist there must be a parent |
Method Summary | |
void |
build()
This will completely parse this node and build the object structure in the memory. |
OMNode |
detach()
This will remove this information item and its children, from the model completely |
OMNode |
getNextSibling()
This will give the next sibling. |
OMContainer |
getParent()
This method should return the immediate parent of the node. |
OMNode |
getPreviousSibling()
Method getPreviousSibling |
int |
getType()
This is to get the type of node, as this is the super class of all the nodes |
void |
insertSiblingAfter(OMNode sibling)
This will insert a sibling just after the current information item. |
void |
insertSiblingBefore(OMNode sibling)
This will insert a sibling just before the current information item |
boolean |
isComplete()
this will indicate whether parser has parsed this information item completely or not. |
void |
serialize(XMLStreamWriter xmlWriter)
Serialize the node without caching |
void |
serializeWithCache(XMLStreamWriter xmlWriter)
Serialize the node with caching |
void |
setComplete(boolean state)
Method setComplete |
void |
setNextSibling(OMNode node)
Method setNextSibling |
void |
setParent(OMContainer element)
Method setParent |
void |
setPreviousSibling(OMNode previousSibling)
Method setPreviousSibling |
void |
setType(int nodeType)
Method setType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.axis2.om.OMNode |
discard |
Field Detail |
protected OMContainerEx parent
protected OMNodeImpl nextSibling
protected OMNodeImpl previousSibling
protected OMXMLParserWrapper builder
protected boolean done
protected int nodeType
Constructor Detail |
public OMNodeImpl()
public OMNodeImpl(OMContainer parent)
parent
- Method Detail |
public OMContainer getParent() throws OMException
getParent
in interface OMNode
OMException
OMException
public void setParent(OMContainer element)
setParent
in interface OMNodeEx
element
- public OMNode getNextSibling() throws OMException
getNextSibling
in interface OMNode
OMException
OMException
public void setNextSibling(OMNode node)
setNextSibling
in interface OMNodeEx
node
- public boolean isComplete()
isComplete
in interface OMNode
public void setComplete(boolean state)
setComplete
in interface OMNodeEx
state
- public OMNode detach() throws OMException
detach
in interface OMNode
OMException
OMException
public void insertSiblingAfter(OMNode sibling) throws OMException
insertSiblingAfter
in interface OMNode
sibling
-
OMException
OMException
public void insertSiblingBefore(OMNode sibling) throws OMException
insertSiblingBefore
in interface OMNode
sibling
-
OMException
OMException
public int getType() throws OMException
getType
in interface OMNode
OMException
OMException
public void setType(int nodeType) throws OMException
setType
in interface OMNodeEx
nodeType
-
OMException
public OMNode getPreviousSibling()
getPreviousSibling
in interface OMNode
public void setPreviousSibling(OMNode previousSibling)
setPreviousSibling
in interface OMNodeEx
previousSibling
- public void build() throws OMException
build
in interface OMNode
OMException
public void serializeWithCache(XMLStreamWriter xmlWriter) throws XMLStreamException
serializeWithCache
in interface OMNode
xmlWriter
-
javax.xml.stream.XMLStreamException
XMLStreamException
#serializeWithCache(org.apache.axis2.om.impl.OMOutputImpl)
public void serialize(XMLStreamWriter xmlWriter) throws XMLStreamException
serialize
in interface OMNode
xmlWriter
-
javax.xml.stream.XMLStreamException
XMLStreamException
#serialize(org.apache.axis2.om.impl.OMOutputImpl)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |