Package org.apache.axiom.om.impl
Interface OMContainerEx
-
- All Superinterfaces:
OMContainer,OMSerializable
public interface OMContainerEx extends OMContainer
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OMNodegetFirstOMChildIfAvailable()Get 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 element-
Methods 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, serializeAndConsume
-
Methods inherited from interface org.apache.axiom.om.OMSerializable
build, close, getOMFactory, isComplete, serialize, serialize, serializeAndConsume
-
-
-
-
Method Detail
-
setComplete
void setComplete(boolean state)
-
setFirstChild
void setFirstChild(OMNode omNode)
forcefully set the first element in this parent element- Parameters:
omNode-
-
setLastChild
void setLastChild(OMNode omNode)
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
-
-