Package org.apache.axiom.om.impl
Interface OMNodeEx
- All Superinterfaces:
OMNode,OMSerializable
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
Modifier and TypeMethodDescriptionGet 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.voidDeprecated.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, serializeAndConsumeMethods inherited from interface org.apache.axiom.om.OMSerializable
build, close, getOMFactory, isComplete, serialize, serialize, serializeAndConsume
-
Method Details
-
setNextOMSibling
-
setPreviousOMSibling
-
setParent
-
setComplete
void setComplete(boolean state) -
setType
- Throws:
OMException
-
internalSerialize
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
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
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
-