java.lang.Cloneable
, Node
AbstractProcessingInstruction
, DefaultProcessingInstruction
, DOMProcessingInstruction
, FlyweightProcessingInstruction
public interface ProcessingInstruction extends Node
ProcessingInstruction
defines an XML processing instruction.
The Node.getName()
method will return the target of the PI and the
Node.getText()
method will return the data from all of the
instructions.ANY_NODE, ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, MAX_NODE_TYPE, NAMESPACE_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, UNKNOWN_NODE
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getTarget() |
This method is the equivalent to the
Node.getName() method. |
java.lang.String |
getText() |
DOCUMENT ME!
|
java.lang.String |
getValue(java.lang.String name) |
Returns the value of a specific name in the PI.
|
java.util.Map<java.lang.String,java.lang.String> |
getValues() |
DOCUMENT ME!
|
boolean |
removeValue(java.lang.String name) |
|
void |
setTarget(java.lang.String target) |
This method is the equivalent to the
Node.setName(java.lang.String) method. |
void |
setValue(java.lang.String name,
java.lang.String value) |
|
void |
setValues(java.util.Map<java.lang.String,java.lang.String> data) |
accept, asXML, asXPathResult, clone, createXPath, detach, getDocument, getName, getNodeType, getNodeTypeName, getParent, getPath, getPath, getStringValue, getUniquePath, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setName, setParent, setText, supportsParent, valueOf, write
java.lang.String getTarget()
Node.getName()
method. It is added
for clarity.void setTarget(java.lang.String target)
Node.setName(java.lang.String)
method. It is added
for clarity.target
- DOCUMENT ME!java.lang.String getText()
java.lang.String getValue(java.lang.String name)
Returns the value of a specific name in the PI.
name
- is the name of the attribute to lookup.java.util.Map<java.lang.String,java.lang.String> getValues()
void setValue(java.lang.String name, java.lang.String value)
void setValues(java.util.Map<java.lang.String,java.lang.String> data)
boolean removeValue(java.lang.String name)