org.jdom
public class ProcessingInstruction extends Content
Version: $Revision: 1.46 $, $Date: 2004/02/27 11:32:57 $
Field Summary | |
---|---|
protected Map | mapData The data for the PI in name/value pairs |
protected String | rawData The data for the PI as a String |
protected String | target The target of the PI |
Constructor Summary | |
---|---|
protected | ProcessingInstruction()
Default, no-args constructor for implementations
to use if needed. |
ProcessingInstruction(String target, Map data)
This will create a new ProcessingInstruction
with the specified target and data.
| |
ProcessingInstruction(String target, String data)
This will create a new ProcessingInstruction
with the specified target and data.
|
Method Summary | |
---|---|
Object | clone()
This will return a clone of this ProcessingInstruction .
|
String | getData()
This will return the raw data from all instructions.
|
List | getPseudoAttributeNames()
This will return a List containing the names of the
"attribute" style pieces of name/value pairs in this PI's data.
|
String | getPseudoAttributeValue(String name)
This will return the value for a specific
name/value pair on the PI. |
String | getTarget()
This will retrieve the target of the PI.
|
String | getValue()
Returns the XPath 1.0 string value of this element, which is the
data of this PI.
|
boolean | removePseudoAttribute(String name)
This will remove the pseudo attribute with the specified name.
|
ProcessingInstruction | setData(String data)
This will set the raw data for the PI.
|
ProcessingInstruction | setData(Map data)
This will set the name/value pairs within the passed
Map as the pairs for the data of
this PI. |
ProcessingInstruction | setPseudoAttribute(String name, String value)
This will set a pseudo attribute with the given name and value.
|
ProcessingInstruction | setTarget(String newTarget)
This will set the target for the PI.
|
String | toString()
This returns a String representation of the
ProcessingInstruction , suitable for debugging. |
ProcessingInstruction
with the specified target and data.
Parameters: target String
target of PI. data Map
data for PI, in
name/value pairs
Throws: IllegalTargetException if the given target is illegal as a processing instruction name.
ProcessingInstruction
with the specified target and data.
Parameters: target String
target of PI. data String
data for PI.
Throws: IllegalTargetException if the given target is illegal as a processing instruction name.
ProcessingInstruction
.
Returns: Object
- clone of this
ProcessingInstruction
.
Returns: String
- data of PI.
List
containing the names of the
"attribute" style pieces of name/value pairs in this PI's data.
Returns: List
- the List
containing the
"attribute" names.
Parameters: name String
name of name/value pair
to lookup value for.
Returns: String
- value of name/value pair.
Returns: String
- target of PI.
Returns: the data of this PI
Parameters: name name of pseudo attribute to remove
Returns: boolean
- whether the requested
instruction was removed.
Parameters: data String
data of PI.
Returns: ProcessingInstruction
- this PI modified.
Map
as the pairs for the data of
this PI. The keys should be the pair name
and the values should be the pair values.
Parameters: data new map data to use
Returns: ProcessingInstruction
- modified PI.
Parameters: name String
name of pair. value String
value for pair.
Returns: ProcessingInstruction
this PI modified.
Parameters: newTarget String
new target of PI.
Returns: ProcessingInstruction
- this PI modified.
String
representation of the
ProcessingInstruction
, suitable for debugging. If the XML
representation of the ProcessingInstruction
is desired,
{@link org.jdom.output.XMLOutputter#outputString(ProcessingInstruction)}
should be used.
Returns: String
- information about the
ProcessingInstruction