org.dom4j
Interface ProcessingInstruction
- Cloneable, Node
public interface ProcessingInstruction
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 |
String | getTarget() - This method is the equivalent to the
ProcessingInstruction method.
|
String | getText() - DOCUMENT ME!
|
String | getValue(String name) -
Returns the value of a specific name in the PI.
|
Map | getValues() - DOCUMENT ME!
|
boolean | removeValue(String name)
|
void | setTarget(String target) - This method is the equivalent to the
ProcessingInstruction 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 , getText , getUniquePath , getUniquePath , hasContent , isReadOnly , matches , numberValueOf , selectNodes , selectNodes , selectNodes , selectObject , selectSingleNode , setDocument , setName , setParent , setText , supportsParent , valueOf , write |
getTarget
public String getTarget()
This method is the equivalent to the ProcessingInstruction
method. It is added
for clarity.
getText
public String getText()
DOCUMENT ME!
- getText in interface Node
- the text for all the data associated with the processing
instruction
getValue
public String getValue(String name)
Returns the value of a specific name in the PI.
name
- is the name of the attribute to lookup.
- the value of the named attribute
getValues
public Map getValues()
DOCUMENT ME!
- the values for this processing instruction as a Map
removeValue
public boolean removeValue(String name)
setTarget
public void setTarget(String target)
This method is the equivalent to the ProcessingInstruction
method. It is added
for clarity.
setValue
public void setValue(String name,
String value)
setValues
public void setValues(Map data)
Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by 