Class LocatedProcessingInstruction
java.lang.Object
org.jdom2.Content
org.jdom2.ProcessingInstruction
org.jdom2.located.LocatedProcessingInstruction
- All Implemented Interfaces:
Serializable, Cloneable, Located, NamespaceAware
An XML processing instruction. Methods allow the user to obtain the target of
the PI as well as its data. The data can always be accessed as a String or,
if the data appears akin to an attribute list, can be retrieved as name/value
pairs.
- Author:
- Rolf Lear
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Content
Content.CType -
Field Summary
Fields inherited from class ProcessingInstruction
mapData, rawData, target -
Constructor Summary
ConstructorsConstructorDescriptionLocatedProcessingInstruction(String target) This will create a newProcessingInstructionwith the specified target.LocatedProcessingInstruction(String target, String data) This will create a newProcessingInstructionwith the specified target and data.LocatedProcessingInstruction(String target, Map<String, String> data) This will create a newProcessingInstructionwith the specified target and data. -
Method Summary
Methods inherited from class ProcessingInstruction
clone, detach, getData, getPseudoAttributeNames, getPseudoAttributeValue, getTarget, getValue, removePseudoAttribute, setData, setData, setParent, setPseudoAttribute, setTarget, toStringMethods inherited from class Content
equals, getCType, getDocument, getNamespacesInherited, getNamespacesInScope, getNamespacesIntroduced, getParent, getParentElement, hashCode
-
Constructor Details
-
LocatedProcessingInstruction
This will create a newProcessingInstructionwith the specified target.- Parameters:
target-Stringtarget of PI.- Throws:
IllegalTargetException- if the given target is illegal as a processing instruction name.
-
LocatedProcessingInstruction
This will create a newProcessingInstructionwith the specified target and data.- Parameters:
target-Stringtarget of PI.data-Mapdata for PI, in name/value pairs- Throws:
IllegalTargetException- if the given target is illegal as a processing instruction name.
-
LocatedProcessingInstruction
This will create a newProcessingInstructionwith the specified target and data.- Parameters:
target-Stringtarget of PI.data-Stringdata for PI.- Throws:
IllegalTargetException- if the given target is illegal as a processing instruction name.
-
-
Method Details
-
getLine
-
getColumn
-
setLine
-
setColumn
-