public abstract class OMNodeImpl extends OMSerializableImpl implements IChildNode
| Modifier and Type | Field and Description |
|---|---|
protected OMNodeImpl |
nextSibling
Field nextSibling
|
protected IContainer |
parent
Field parent
|
protected OMNodeImpl |
previousSibling
Field previousSibling
|
factoryCDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE| Constructor and Description |
|---|
OMNodeImpl(OMFactory factory)
Constructor OMNodeImpl
|
| Modifier and Type | Method and Description |
|---|---|
void |
buildWithAttachments()
Parses this node and builds the object structure in memory.
|
OMInformationItem |
clone(OMCloneOptions options)
Clone this information item.
|
OMNode |
detach()
Removes this information item and its children, from the model completely.
|
IParentNode |
getIParentNode() |
OMNode |
getNextOMSibling()
Returns the next sibling.
|
OMNode |
getNextOMSiblingIfAvailable()
Get the next sibling if it is available.
|
OMContainer |
getParent()
Returns the immediate parent of the node.
|
OMNode |
getPreviousOMSibling()
Gets the previous sibling.
|
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(XMLStreamWriter writer) |
void |
internalSerializeAndConsume(XMLStreamWriter writer) |
void |
setNextOMSibling(OMNode node)
Method setNextOMSibling.
|
void |
setParent(OMContainer element)
Method setParent.
|
void |
setPreviousOMSibling(OMNode previousSibling)
Method setPreviousOMSibling.
|
close, getBuilder, getOMFactory, internalSerialize, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setCompleteclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinternalSerialize, setCompletediscard, getType, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsumebuild, close, isComplete, serialize, serialize, serializeAndConsumegetOMFactoryprotected IContainer parent
protected OMNodeImpl nextSibling
protected OMNodeImpl previousSibling
public OMNodeImpl(OMFactory factory)
factory - The OMFactory that created thispublic OMContainer getParent()
getParent in interface OMNodeOMExceptionpublic IParentNode getIParentNode()
getIParentNode in interface IChildNodepublic void setParent(OMContainer element)
public OMNode getNextOMSibling() throws OMException
getNextOMSibling in interface OMNodeOMExceptionpublic OMNode getNextOMSiblingIfAvailable()
OMNodeExOMSerializable.isComplete() may return false when called on the sibling.
In contrast to OMNode.getNextOMSibling(), this method will never modify
the state of the underlying parser.getNextOMSiblingIfAvailable in interface OMNodeExnull if the node has no next sibling or
the builder has not yet started to build the next siblingpublic void setNextOMSibling(OMNode node)
setNextOMSibling in interface OMNodeExnode - public OMNode detach() throws OMException
detach in interface OMNodeOMExceptionpublic void insertSiblingAfter(OMNode sibling) throws OMException
insertSiblingAfter in interface OMNodesibling - OMExceptionpublic void insertSiblingBefore(OMNode sibling) throws OMException
insertSiblingBefore in interface OMNodesibling - OMExceptionpublic OMNode getPreviousOMSibling()
getPreviousOMSibling in interface OMNodepublic void setPreviousOMSibling(OMNode previousSibling)
setPreviousOMSibling in interface OMNodeExpreviousSibling - public void buildWithAttachments()
buildWithAttachments in interface OMNodepublic void internalSerialize(XMLStreamWriter writer) throws XMLStreamException
internalSerialize in interface OMNodeExXMLStreamExceptionpublic void internalSerializeAndConsume(XMLStreamWriter writer) throws XMLStreamException
internalSerializeAndConsume in interface OMNodeExXMLStreamExceptionpublic OMInformationItem clone(OMCloneOptions options)
OMInformationItemclone in interface OMInformationItemoptions - the options to use when cloning this element and its descendants; for object
models with domain specific extensions (such as SOAP), this may be a subclass of
OMCloneOptionsCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.