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 and Description |
---|---|
String |
getTarget()
This method is the equivalent to the
Node.getName()
method. |
String |
getText()
Returns the text of this node.
|
String |
getValue(String name)
Returns the value of a specific name in the PI.
|
Map |
getValues() |
boolean |
removeValue(String name) |
void |
setTarget(String target)
This method is the equivalent to the
Node.setName(java.lang.String)
method. |
void |
setValue(String name,
String value) |
void |
setValues(Map 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
String getTarget()
Node.getName()
method. It is added for clarity.void setTarget(String target)
Node.setName(java.lang.String)
method. It is added for clarity.String getValue(String name)
Returns the value of a specific name in the PI.
name
- is the name of the attribute to lookup.boolean removeValue(String name)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses