| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| 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 |
| Access | Constructor and Description |
|---|---|
| protected | |
| 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 Object | Returns: Object - clone of this
ProcessingInstruction.Overrides org. ProcessingInstruction.
|
| 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 | |
| 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 String | |
| public String | Returns: String - information about the
ProcessingInstructionOverrides java. String representation of the
ProcessingInstruction, suitable for debugging.
|
| CVS_ID | back to summary |
|---|---|
| private static final String CVS_ID | |
| mapData | back to summary |
|---|---|
| protected Map<K, V> 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 | |
| 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, Map<K, V> 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 Object clone() Overrides org. This will return a clone of this
| |
| 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<K, V> data) This will set the name/value pairs within the passed
| |
| 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 String toString(Map<K, V> mapData) This will convert the Map to a string representation. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. This returns a
| |