Package org.apache.axiom.om.impl
Interface OMContainerEx
- All Superinterfaces:
OMContainer,OMSerializable
Interface OMContainerEx
Internal Implementation detail. Adding special interface to stop folks from accidently using
OMContainer. Please use at your own risk. May corrupt the data integrity.
-
Method Summary
Modifier and TypeMethodDescriptionGet the first child if it is available.voidsetComplete(boolean state) voidsetFirstChild(OMNode omNode) forcefully set the first element in this parent elementvoidsetLastChild(OMNode omNode) forcefully set the last element in this parent elementMethods inherited from interface org.apache.axiom.om.OMContainer
addChild, buildNext, getBuilder, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getFirstChildWithName, getFirstOMChild, getXMLStreamReader, getXMLStreamReader, getXMLStreamReaderWithoutCaching, 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
-
setComplete
void setComplete(boolean state) -
setFirstChild
forcefully set the first element in this parent element- Parameters:
omNode-
-
setLastChild
forcefully set the last element in this parent element- Parameters:
omNode-
-
getFirstOMChildIfAvailable
OMNode getFirstOMChildIfAvailable()Get the first child if it is available. The child 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 child. In contrast toOMContainer.getFirstOMChild(), this method will never modify the state of the underlying parser.- Returns:
- the first child or
nullif the container has no children or the builder has not yet started to build the first child
-