| Modifier and Type | Field and Description |
|---|---|
| protected transient Map | mapData
The data for the PI in name/value pairs |
| protected String | rawData
The data for the PI as a String |
| private static final long | serialVersionUID
JDOM2 Serialization.
|
| protected String | target
The target of the PI |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | ProcessingInstruction(String
String target of PI.This will create a new |
| public | ProcessingInstruction(String
String target of PI.Map data for PI, in
name/value pairsThis will create a new |
| public | ProcessingInstruction(String
String target of PI.String data for PI.This will create a new |
| Modifier and Type | Method and Description |
|---|---|
| public ProcessingInstruction | |
| public ProcessingInstruction | detach()
Overrides org. |
| private static int[] | Returns: the first quoted string encountered in the input data. If no quoted string is found, then the empty string, "", is returned.the input string from which a quoted string is to
be extracted. rawData)This is a helper routine, only used by parseData, to extract a quoted String from the input parameter, rawData. |
| public String | |
| public List | Returns: List - the List containing the
"attribute" names.This will return a |
| public String | Returns: String - value of name/value pair.String name of name/value pair
to lookup value for.This will return the value for a specific name/value pair on the PI. |
| public String | |
| public String | Returns: the data of this PIImplements abstract org. |
| private Map | |
| public boolean | Returns: boolean - whether the requested
instruction was removed.name of pseudo attribute to remove name)This will remove the pseudo attribute with the specified name. |
| public ProcessingInstruction | |
| public ProcessingInstruction | |
| protected ProcessingInstruction | setParent(Parent
new parent element parent)Overrides org. |
| public ProcessingInstruction | Returns: ProcessingInstruction this PI modified.String name of pair.String value for pair.This will set a pseudo attribute with the given name and value. |
| public ProcessingInstruction | |
| private static final String | |
| public String | Returns: String - information about the
ProcessingInstructionOverrides java. String representation of the
ProcessingInstruction, suitable for debugging.
|
| mapData | back to summary |
|---|---|
| protected transient Map<String, String> mapData The data for the PI in name/value pairs | |
| rawData | back to summary |
|---|---|
| protected String rawData The data for the PI as a String | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. JDOM2 Serialization. In this case, ProcessingInstruction is simple. | |
| target | back to summary |
|---|---|
| protected String target The target of the PI | |
| ProcessingInstruction | back to summary |
|---|---|
| protected ProcessingInstruction() Default, no-args constructor for implementations to use if needed. | |
| ProcessingInstruction | back to summary |
|---|---|
| public ProcessingInstruction(String target) This will create a new
| |
| ProcessingInstruction | back to summary |
|---|---|
| public ProcessingInstruction(String target, Map<String, String> data) This will create a new
| |
| ProcessingInstruction | back to summary |
|---|---|
| public ProcessingInstruction(String target, String data) This will create a new
| |
| clone | back to summary |
|---|---|
| public ProcessingInstruction clone() Overrides org. Doc from org. Return a deep clone of this instance. Even if this instance has a parent, the returned clone will not. All JDOM core classes are Cloneable, and never throw CloneNotSupportedException. Additionally all Cloneable JDOM classes return the correct type of instance from this method and there is no need to cast the result (co-variant return value). Subclasses of this should still call super.clone() in their clone method.
| |
| detach | back to summary |
|---|---|
| public ProcessingInstruction detach() Overrides org. Doc from org. Detaches this child from its parent or does nothing if the child has no parent.
This method can be overridden by particular Content subclasses to return
a specific type of Content (co-variant return type). All overriding
subclasses must call
| |
| extractQuotedString | back to summary |
|---|---|
| private static int[] extractQuotedString(String rawData) This is a helper routine, only used by parseData, to extract a quoted String from the input parameter, rawData. A quoted string can use either single or double quotes, but they must match up. A singly quoted string can contain an unbalanced amount of double quotes, or vice versa. For example, the String "JDOM's the best" is legal as is 'JDOM"s the best'. | |
| getData | back to summary |
|---|---|
| public String getData() This will return the raw data from all instructions.
| |
| getPseudoAttributeNames | back to summary |
|---|---|
| public List This will return a | |
| getPseudoAttributeValue | back to summary |
|---|---|
| public String getPseudoAttributeValue(String name) This will return the value for a specific name/value pair on the PI. If no such pair is found for this PI, null is returned. | |
| getTarget | back to summary |
|---|---|
| public String getTarget() This will retrieve the target of the PI.
| |
| getValue | back to summary |
|---|---|
| public String getValue() Implements abstract org. Returns the XPath 1.0 string value of this element, which is the data of this PI. | |
| parseData | back to summary |
|---|---|
| private Map This will parse and load the instructions for the PI. This is separated to allow it to occur once and then be reused. | |
| removePseudoAttribute | back to summary |
|---|---|
| public boolean removePseudoAttribute(String name) This will remove the pseudo attribute with the specified name.
| |
| setData | back to summary |
|---|---|
| public ProcessingInstruction setData(String data) This will set the raw data for the PI.
| |
| setData | back to summary |
|---|---|
| public ProcessingInstruction setData(Map<String, String> data) This will set the name/value pairs within the passed
| |
| setParent | back to summary |
|---|---|
| protected ProcessingInstruction setParent(Parent parent) Overrides org. Doc from org. Sets the parent of this Content. The caller is responsible for removing any pre-existing parentage.
This method can be overridden by particular Content subclasses to return
a specific type of Content (co-variant return type). All overriding
subclasses must call
| |
| setPseudoAttribute | back to summary |
|---|---|
| public ProcessingInstruction setPseudoAttribute(String name, String value) This will set a pseudo attribute with the given name and value. If the PI data is not already in a pseudo-attribute format, this will replace the existing data.
| |
| setTarget | back to summary |
|---|---|
| public ProcessingInstruction setTarget(String newTarget) This will set the target for the PI.
| |
| toString | back to summary |
|---|---|
| private static final String toString(Map<String, String> pmapData) This will convert the Map to a string representation. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. This returns a | |