DefaultProcessingInstruction is the default Processing
Instruction implementation. It is a doubly linked node which supports the
parent relationship and can be modified in place.
| Modifier and Type | Field and Description |
|---|---|
| private Element | parent
The parent of this node |
| Access | Constructor and Description |
|---|---|
| public | DefaultProcessingInstruction(String
is the name of the PI target, Map<String, String> is the values)Map values for the PIThis will create a new PI with the given target and values |
| public | DefaultProcessingInstruction(String
is the name of the PI target, String is the values for the PI values)This will create a new PI with the given target and values |
| public | DefaultProcessingInstruction(Element
is the parent element parent, String is the name of the PI target, String is the values for the PI values)This will create a new PI with the given target and values |
| Modifier and Type | Method and Description |
|---|---|
| public Element | getParent()
Overrides org. Implements org.
|
| public boolean | isReadOnly()
Overrides org. Implements org.
|
| public void | setParent(Element
is the new parent of this node. parent)Overrides org. Implements org.
|
| public void | setTarget(String
DOCUMENT ME! target)Overrides org. Implements org. setNamemethod.
|
| public void | setText(String
is the new textual value of this node text)Overrides org. Implements org.
Sets the text data of this node or this method will throw an
|
| public void | setValue(String name, String value)
Overrides org. Implements org. |
| public void | setValues(Map<String, String> values)
Overrides org. Implements org. |
| public boolean | supportsParent()
Overrides org. Implements org.
|
| parent | back to summary |
|---|---|
| private Element parent The parent of this node | |
| DefaultProcessingInstruction | back to summary |
|---|---|
| public DefaultProcessingInstruction(String target, Map<String, String> values) This will create a new PI with the given target and values | |
| DefaultProcessingInstruction | back to summary |
|---|---|
| public DefaultProcessingInstruction(String target, String values) This will create a new PI with the given target and values | |
| DefaultProcessingInstruction | back to summary |
|---|---|
| public DefaultProcessingInstruction(Element parent, String target, String values) This will create a new PI with the given target and values | |
| getParent | back to summary |
|---|---|
| public Element getParent() Overrides org. Implements org. Doc from org.
This method is an optional feature and may not be supported for all
| |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly() Overrides org. Implements org. Doc from org.
| |
| setParent | back to summary |
|---|---|
| public void setParent(Element parent) Overrides org. Implements org. Doc from org.
This method should only be called from inside an
| |
| setTarget | back to summary |
|---|---|
| public void setTarget(String target) Overrides org. Implements org. Doc from org. This method is the equivalent to the
| |
| setText | back to summary |
|---|---|
| public void setText(String text) Overrides org. Implements org. Doc from org.
Sets the text data of this node or this method will throw an
| |
| setValue | back to summary |
|---|---|
| public void setValue(String name, String value) Overrides org. Implements org. | |
| setValues | back to summary |
|---|---|
| public void setValues(Map<String, String> values) Overrides org. Implements org. | |
| supportsParent | back to summary |
|---|---|
| public boolean supportsParent() Overrides org. Implements org. Doc from org.
Some XML tree implementations are singly linked and only support downward navigation through children relationships. The default case is that both parent and children relationships are supported though for memory and performance reasons the parent relationship may not be supported.
| |