public class ProcessingInstructionImpl extends ChildNode implements ProcessingInstruction, OMProcessingInstruction
nextSibling, parentNode, previousSibling
builder, done, factory, FIRSTCHILD, flags, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE
Constructor and Description |
---|
ProcessingInstructionImpl(DocumentImpl ownerDocument,
String target,
String value,
OMFactory factory) |
Modifier and Type | Method and Description |
---|---|
String |
getData() |
String |
getNodeName() |
short |
getNodeType() |
String |
getNodeValue() |
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(javax.xml.stream.XMLStreamWriter writer,
boolean cache)
Serializes the node.
|
void |
setData(String data) |
void |
setTarget(String target)
Sets the target of this Processing Instruction.
|
void |
setType(int nodeType) |
void |
setValue(String text)
Sets the value of this Processing Instruction.
|
cloneNode, detach, discard, getNextOMSibling, getNextOMSiblingIfAvailable, getNextSibling, getParent, getParentNode, getPreviousOMSibling, getPreviousSibling, insertSiblingAfter, insertSiblingBefore, setNextOMSibling, setParent, setPreviousOMSibling
appendChild, build, buildWithAttachments, close, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLength, getLocalName, getNamespaceURI, getOMFactory, getOwnerDocument, getPrefix, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, internalSerialize, internalSerializeAndConsume, isComplete, isDefaultNamespace, isEqualNode, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setComplete, setNodeValue, setOwnerDocument, setPrefix, setTextContent, setUserData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
buildWithAttachments, detach, discard, getNextOMSibling, getParent, getPreviousOMSibling, insertSiblingAfter, insertSiblingBefore, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
build, close, getOMFactory, isComplete, serialize, serialize, serializeAndConsume
public ProcessingInstructionImpl(DocumentImpl ownerDocument, String target, String value, OMFactory factory)
public 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 setType(int nodeType) throws OMException
setType
in interface OMNodeEx
OMException
public short getNodeType()
getNodeType
in interface Node
public String getTarget()
OMProcessingInstruction
getTarget
in interface OMProcessingInstruction
getTarget
in interface ProcessingInstruction
public void setTarget(String target)
OMProcessingInstruction
setTarget
in interface OMProcessingInstruction
public String getValue()
OMProcessingInstruction
getValue
in interface OMProcessingInstruction
public void setValue(String text)
OMProcessingInstruction
setValue
in interface OMProcessingInstruction
public String getData()
getData
in interface ProcessingInstruction
public void setData(String data) throws DOMException
setData
in interface ProcessingInstruction
DOMException
public String getNodeName()
getNodeName
in interface Node
public String getNodeValue() throws DOMException
getNodeValue
in interface Node
getNodeValue
in class NodeImpl
DOMException
public void internalSerialize(javax.xml.stream.XMLStreamWriter writer, boolean cache) throws javax.xml.stream.XMLStreamException
OMNodeEx
OMSerializable.serialize(XMLStreamWriter, boolean)
instead.internalSerialize
in interface OMNodeEx
cache
- indicates if caching should be enabledjavax.xml.stream.XMLStreamException
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.