Package org.apache.axiom.om.impl
Interface OMNodeEx
-
- All Superinterfaces:
OMNode,OMSerializable
public interface OMNodeEx extends OMNode
Interface OMNodeEx Internal Implementation detail. Adding special interface to stop folks from accidently using OMNode. Please use at your own risk. May corrupt the data integrity.
-
-
Field Summary
-
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description OMNodegetNextOMSiblingIfAvailable()Get the next sibling if it is available.voidinternalSerialize(XMLStreamWriter writer)Deprecated.This method will be removed in a future version of Axiom.voidinternalSerialize(XMLStreamWriter writer, boolean cache)Serializes the node.voidinternalSerializeAndConsume(XMLStreamWriter writer)Deprecated.This method will be removed in a future version of Axiom.voidsetComplete(boolean state)voidsetNextOMSibling(OMNode node)voidsetParent(OMContainer element)voidsetPreviousOMSibling(OMNode previousSibling)voidsetType(int nodeType)-
Methods inherited from interface org.apache.axiom.om.OMNode
buildWithAttachments, detach, discard, getNextOMSibling, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
-
Methods inherited from interface org.apache.axiom.om.OMSerializable
build, close, getOMFactory, isComplete, serialize, serialize, serializeAndConsume
-
-
-
-
Method Detail
-
setNextOMSibling
void setNextOMSibling(OMNode node)
-
setPreviousOMSibling
void setPreviousOMSibling(OMNode previousSibling)
-
setParent
void setParent(OMContainer element)
-
setComplete
void setComplete(boolean state)
-
setType
void setType(int nodeType) throws OMException- Throws:
OMException
-
internalSerialize
void internalSerialize(XMLStreamWriter writer, boolean cache) throws XMLStreamException
Serializes the node. Note that this is an internal method that MUST NOT be used outside of Axiom. Please useOMSerializable.serialize(XMLStreamWriter, boolean)instead.- Parameters:
writer-cache- indicates if caching should be enabled- Throws:
XMLStreamException
-
internalSerialize
void internalSerialize(XMLStreamWriter writer) throws XMLStreamException
Deprecated.This method will be removed in a future version of Axiom. It is only here to maintain backward compatibility with projects using this method despite the fact that it is marked as internal.- Throws:
XMLStreamException
-
internalSerializeAndConsume
void internalSerializeAndConsume(XMLStreamWriter writer) throws XMLStreamException
Deprecated.This method will be removed in a future version of Axiom. It is only here to maintain backward compatibility with projects using this method despite the fact that it is marked as internal.- Throws:
XMLStreamException
-
getNextOMSiblingIfAvailable
OMNode getNextOMSiblingIfAvailable()
Get the next sibling if it is available. The sibling is available if it is complete or if the builder has started building the node. In the latter case,OMSerializable.isComplete()may returnfalsewhen called on the sibling. In contrast toOMNode.getNextOMSibling(), this method will never modify the state of the underlying parser.- Returns:
- the next sibling or
nullif the node has no next sibling or the builder has not yet started to build the next sibling
-
-