public class OMProcessingInstructionImpl extends OMLeafNode implements OMProcessingInstruction
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
target |
protected java.lang.String |
value |
nextSibling, parent, previousSiblingfactoryCDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE| Constructor and Description |
|---|
OMProcessingInstructionImpl(OMContainer parentNode,
java.lang.String target,
java.lang.String value,
OMFactory factory,
boolean fromBuilder)
Constructor OMProcessingInstructionImpl.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) OMNode |
clone(OMCloneOptions options,
OMContainer targetParent) |
java.lang.String |
getTarget()
Gets the target of this Processing Instruction.
|
int |
getType()
Returns the type of node.
|
java.lang.String |
getValue()
Gets the value of this Processing Instruction.
|
void |
internalSerialize(javax.xml.stream.XMLStreamWriter writer,
boolean cache)
Serializes the node.
|
void |
setTarget(java.lang.String target)
Sets the target of this Processing Instruction.
|
void |
setValue(java.lang.String text)
Sets the value of this Processing Instruction.
|
build, discard, getBuilder, isComplete, setCompletebuildWithAttachments, clone, detach, getIParentNode, getNextOMSibling, getNextOMSiblingIfAvailable, getParent, getPreviousOMSibling, insertSiblingAfter, insertSiblingBefore, internalSerialize, internalSerializeAndConsume, setNextOMSibling, setParent, setPreviousOMSiblingclose, getOMFactory, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsumeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildWithAttachments, detach, discard, getNextOMSibling, getParent, getPreviousOMSibling, insertSiblingAfter, insertSiblingBefore, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsumebuild, close, isComplete, serialize, serialize, serializeAndConsumeclone, getOMFactorypublic OMProcessingInstructionImpl(OMContainer parentNode, java.lang.String target, java.lang.String value, OMFactory factory, boolean fromBuilder)
parentNode - target - value - public final int getType()
OMNodegetType in interface OMNodeOMNode.ELEMENT_NODE, OMNode.TEXT_NODE, OMNode.CDATA_SECTION_NODE,
OMNode.COMMENT_NODE, OMNode.DTD_NODE, OMNode.PI_NODE, OMNode.ENTITY_REFERENCE_NODE or OMNode.SPACE_NODE.public void internalSerialize(javax.xml.stream.XMLStreamWriter writer,
boolean cache)
throws javax.xml.stream.XMLStreamException
OMSerializableImplinternalSerialize in interface OMNodeExinternalSerialize in class OMSerializableImplcache - indicates if caching should be enabledjavax.xml.stream.XMLStreamExceptionpublic java.lang.String getValue()
getValue in interface OMProcessingInstructionpublic void setTarget(java.lang.String target)
setTarget in interface OMProcessingInstructiontarget - public java.lang.String getTarget()
getTarget in interface OMProcessingInstructionpublic void setValue(java.lang.String text)
setValue in interface OMProcessingInstructiontext - OMNode clone(OMCloneOptions options, OMContainer targetParent)
clone in class OMNodeImpl