public class LocatedProcessingInstruction extends ProcessingInstruction implements Located
Content.CType
构造器和说明 |
---|
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. |
限定符和类型 | 方法和说明 |
---|---|
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
|
clone, detach, getData, getPseudoAttributeNames, getPseudoAttributeValue, getTarget, getValue, removePseudoAttribute, setData, setData, setPseudoAttribute, setTarget, toString
equals, getCType, getDocument, getNamespacesInherited, getNamespacesInScope, getNamespacesIntroduced, getParent, getParentElement, hashCode
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 pairsIllegalTargetException
- 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.