|
JDOM 2.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdom2.Content
org.jdom2.ProcessingInstruction
org.jdom2.located.LocatedProcessingInstruction
public class LocatedProcessingInstruction
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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jdom2.Content |
---|
Content.CType |
Field Summary |
---|
Fields inherited from class org.jdom2.ProcessingInstruction |
---|
mapData, rawData, target |
Fields inherited from class org.jdom2.Content |
---|
ctype, parent |
Constructor Summary | |
---|---|
LocatedProcessingInstruction(java.lang.String target)
This will create a new ProcessingInstruction
with the specified target. |
|
LocatedProcessingInstruction(java.lang.String target,
java.util.Map<java.lang.String,java.lang.String> data)
This will create a new ProcessingInstruction
with the specified target and data. |
|
LocatedProcessingInstruction(java.lang.String target,
java.lang.String data)
This will create a new ProcessingInstruction
with the specified target and data. |
Method Summary | |
---|---|
int |
getColumn()
Get the column (character on the line). |
int |
getLine()
Get the line number |
void |
setColumn(int col)
Set the column (character on the line). |
void |
setLine(int line)
Set the line number |
Methods inherited from class org.jdom2.ProcessingInstruction |
---|
clone, detach, getData, getPseudoAttributeNames, getPseudoAttributeValue, getTarget, getValue, removePseudoAttribute, setData, setData, setParent, setPseudoAttribute, setTarget, toString |
Methods inherited from class org.jdom2.Content |
---|
equals, getCType, getDocument, getNamespacesInherited, getNamespacesInScope, getNamespacesIntroduced, getParent, getParentElement, hashCode |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LocatedProcessingInstruction(java.lang.String target)
ProcessingInstruction
with the specified target.
target
- String
target of PI.
IllegalTargetException
- if the given target is illegal
as a processing instruction name.public LocatedProcessingInstruction(java.lang.String target, java.util.Map<java.lang.String,java.lang.String> data)
ProcessingInstruction
with the specified target and data.
target
- String
target of PI.data
- Map
data for PI, in
name/value pairs
IllegalTargetException
- if the given target is illegal
as a processing instruction name.public LocatedProcessingInstruction(java.lang.String target, java.lang.String data)
ProcessingInstruction
with the specified target and data.
target
- String
target of PI.data
- String
data for PI.
IllegalTargetException
- if the given target is illegal
as a processing instruction name.Method Detail |
---|
public int getLine()
Located
getLine
in interface Located
public int getColumn()
Located
getColumn
in interface Located
public void setLine(int line)
Located
setLine
in interface Located
line
- the line.public void setColumn(int col)
Located
setColumn
in interface Located
col
- The column
|
JDOM 2.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |