public class Instruction extends Descriptor
<?
and
?>
.
The JAST implementation of Instruction stores the target as a field; and other properties of an Instruction must be encoded as named Attributes and stored in the inherited attribute list. Technically this is more restrictive than the W3C syntax, which allows more liberal free-format text after the target. However, since the attribute-value format is a common style, it was convenient to adopt this restriction.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
target
The target of this Instruction, whether "xml-stylesheet" or some other
target.
|
attributeList
Constructor and Description |
---|
Instruction(java.lang.String target)
Creates an XML processing instruction with the specified target.
|
Modifier and Type | Method and Description |
---|---|
Instruction |
addAttribute(Attribute node)
Sets a named property of this Instruction.
|
Instruction |
clone()
Clones this Instruction node.
|
java.lang.String |
getTarget()
Returns the target of this Instruction.
|
int |
getType()
Returns the type of this Instruction.
|
Instruction |
setValue(java.lang.String identifier,
java.lang.String value)
Sets the value of a named Attribute of this Instruction.
|
getAttribute, getAttribute, getAttributes, getAttributes, getValue, hasAttributes, removeAttribute, removeAttribute
getIdentifier, getName, getNamespace, getPrefix
addContent, addContent, descendants, descendants, detach, getComment, getContent, getContent, getContent, getContents, getContents, getDocument, getParent, getText, hasContents, iterator, iterator, removeContent, removeContent, removeContents, setParent, toString
private java.lang.String target
public Instruction(java.lang.String target)
target
- the target of the Instruction.public Instruction clone()
clone
in class Descriptor
public int getType()
public Instruction addAttribute(Attribute node)
addAttribute
in class Descriptor
node
- the Attribute to set.public Instruction setValue(java.lang.String identifier, java.lang.String value)
setValue
in class Descriptor
identifier
- the Attribute's long identifier, or short name.value
- the Attribute value.public java.lang.String getTarget()