public class OMProcessingInstructionImpl extends OMLeafNode implements OMProcessingInstruction
Modifier and Type | Field and Description |
---|---|
protected String |
target |
protected String |
value |
nextSibling, parent, previousSibling
factory
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE
Constructor and Description |
---|
OMProcessingInstructionImpl(OMContainer parentNode,
String target,
String value,
OMFactory factory,
boolean fromBuilder)
Constructor OMProcessingInstructionImpl.
|
Modifier and Type | Method and Description |
---|---|
String |
getTarget()
Gets the target of this Processing Instruction.
|
int |
getType()
Returns the type of node.
|
String |
getValue()
Gets the value of this Processing Instruction.
|
void |
internalSerialize(XMLStreamWriter writer,
boolean cache)
Serializes the node.
|
void |
setTarget(String target)
Sets the target of this Processing Instruction.
|
void |
setValue(String text)
Sets the value of this Processing Instruction.
|
build, discard, getBuilder, isComplete, setComplete
buildWithAttachments, clone, detach, getIParentNode, getNextOMSibling, getNextOMSiblingIfAvailable, getParent, getPreviousOMSibling, insertSiblingAfter, insertSiblingBefore, internalSerialize, internalSerializeAndConsume, setNextOMSibling, setParent, setPreviousOMSibling
close, getOMFactory, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
buildWithAttachments, detach, discard, getNextOMSibling, getParent, getPreviousOMSibling, insertSiblingAfter, insertSiblingBefore, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
build, close, isComplete, serialize, serialize, serializeAndConsume
clone, getOMFactory
public OMProcessingInstructionImpl(OMContainer parentNode, String target, String value, OMFactory factory, boolean fromBuilder)
parentNode
- target
- value
- public final int getType()
OMNode
getType
in interface OMNode
OMNode.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(XMLStreamWriter writer, boolean cache) throws XMLStreamException
OMSerializableImpl
internalSerialize
in interface OMNodeEx
internalSerialize
in class OMSerializableImpl
cache
- indicates if caching should be enabledXMLStreamException
public String getValue()
getValue
in interface OMProcessingInstruction
public void setTarget(String target)
setTarget
in interface OMProcessingInstruction
target
- public String getTarget()
getTarget
in interface OMProcessingInstruction
public void setValue(String text)
setValue
in interface OMProcessingInstruction
text
- Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.