|
||||||||||
| 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
public abstract class OMNodeImpl
Class OMNodeImpl
| Field Summary | |
|---|---|
OMXMLParserWrapper |
builder
Field builder |
protected boolean |
done
Field done |
protected OMFactory |
factory
|
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.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 |
build()
Parses this node and builds the object structure in memory. |
void |
buildWithAttachments()
Parses this node and builds the object structure in memory. |
void |
close(boolean build)
If a builder and parser is associated with the node, it is closed. |
OMNode |
detach()
Removes this information item and its children, from the model completely. |
OMNode |
getNextOMSibling()
Returns the next sibling. |
OMFactory |
getOMFactory()
Returns the OMFactory that created this object |
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(javax.xml.stream.XMLStreamWriter writer)
Serializes the node with caching. |
void |
internalSerializeAndConsume(javax.xml.stream.XMLStreamWriter writer)
Serializes the node without caching. |
boolean |
isComplete()
Indicates whether parser has parsed this information item completely or not. |
void |
serialize(OutputStream output)
Serializes the node with caching. |
void |
serialize(OutputStream output,
OMOutputFormat format)
Serializes the node with caching. |
void |
serialize(Writer writer)
Serializes the node with caching. |
void |
serialize(Writer writer2,
OMOutputFormat format)
Serializes the node with caching. |
void |
serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
Serializes the node with caching. |
void |
serializeAndConsume(OutputStream output)
Serializes the node without caching. |
void |
serializeAndConsume(OutputStream output,
OMOutputFormat format)
Serializes the node without caching. |
void |
serializeAndConsume(Writer writer)
Serializes the node without caching. |
void |
serializeAndConsume(Writer writer2,
OMOutputFormat format)
Serializes the node without caching. |
void |
serializeAndConsume(javax.xml.stream.XMLStreamWriter xmlWriter)
Serializes the node without caching. |
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.axiom.om.OMNode |
|---|
discard |
| Field Detail |
|---|
protected OMContainerEx parent
protected OMNodeImpl nextSibling
protected OMNodeImpl previousSibling
public OMXMLParserWrapper builder
protected boolean done
protected int nodeType
protected OMFactory factory
| Constructor Detail |
|---|
public OMNodeImpl(OMFactory factory)
factory - The OMFactory that created this
public OMNodeImpl(OMContainer parent,
OMFactory factory,
boolean done)
parent - Parent OMContainer of this nodefactory - The OMFactory that created this| Method Detail |
|---|
public OMContainer getParent()
getParent in interface OMNodeOMExceptionpublic void setParent(OMContainer element)
setParent in interface OMNodeExelement -
public OMNode getNextOMSibling()
throws OMException
getNextOMSibling in interface OMNodeOMExceptionpublic void setNextOMSibling(OMNode node)
setNextOMSibling in interface OMNodeExnode - public boolean isComplete()
isComplete in interface OMNodepublic void setComplete(boolean state)
setComplete in interface OMNodeExstate -
public OMNode detach()
throws OMException
detach in interface OMNodeOMException
public void insertSiblingAfter(OMNode sibling)
throws OMException
insertSiblingAfter in interface OMNodesibling -
OMException
public void insertSiblingBefore(OMNode sibling)
throws OMException
insertSiblingBefore in interface OMNodesibling -
OMExceptionpublic int getType()
getType in interface OMNodesetType(int)setType(int)
public void setType(int nodeType)
throws OMException
setType in interface OMNodeExnodeType -
OMExceptionpublic OMNode getPreviousOMSibling()
getPreviousOMSibling in interface OMNodepublic void setPreviousOMSibling(OMNode previousSibling)
setPreviousOMSibling in interface OMNodeExpreviousSibling -
public void build()
throws OMException
build in interface OMNodeOMExceptionpublic void buildWithAttachments()
buildWithAttachments in interface OMNodepublic void close(boolean build)
OMNode
close in interface OMNodebuild - if true, the object is built first before closing the builder/parser
public void serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
throws javax.xml.stream.XMLStreamException
serialize in interface OMNodexmlWriter -
javax.xml.stream.XMLStreamException
public void serializeAndConsume(javax.xml.stream.XMLStreamWriter xmlWriter)
throws javax.xml.stream.XMLStreamException
serializeAndConsume in interface OMNodexmlWriter -
javax.xml.stream.XMLStreamException
public void internalSerialize(javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
internalSerialize in interface OMNodeExwriter -
javax.xml.stream.XMLStreamException
public void internalSerializeAndConsume(javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
internalSerializeAndConsume in interface OMNodeExwriter -
javax.xml.stream.XMLStreamException
public void serialize(OutputStream output)
throws javax.xml.stream.XMLStreamException
OMNode
serialize in interface OMNodejavax.xml.stream.XMLStreamException
public void serialize(Writer writer)
throws javax.xml.stream.XMLStreamException
OMNode
serialize in interface OMNodejavax.xml.stream.XMLStreamException
public void serializeAndConsume(OutputStream output)
throws javax.xml.stream.XMLStreamException
OMNode
serializeAndConsume in interface OMNodejavax.xml.stream.XMLStreamException
public void serializeAndConsume(Writer writer)
throws javax.xml.stream.XMLStreamException
OMNode
serializeAndConsume in interface OMNodejavax.xml.stream.XMLStreamException
public void serialize(OutputStream output,
OMOutputFormat format)
throws javax.xml.stream.XMLStreamException
OMNode
serialize in interface OMNodejavax.xml.stream.XMLStreamException
public void serialize(Writer writer2,
OMOutputFormat format)
throws javax.xml.stream.XMLStreamException
OMNode
serialize in interface OMNodejavax.xml.stream.XMLStreamException
public void serializeAndConsume(OutputStream output,
OMOutputFormat format)
throws javax.xml.stream.XMLStreamException
OMNode
serializeAndConsume in interface OMNodejavax.xml.stream.XMLStreamException
public void serializeAndConsume(Writer writer2,
OMOutputFormat format)
throws javax.xml.stream.XMLStreamException
OMNode
serializeAndConsume in interface OMNodejavax.xml.stream.XMLStreamExceptionpublic OMFactory getOMFactory()
OMNode
getOMFactory in interface OMNodeprotected OMNode importNode(OMNode child)
child -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||