Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
gnu.xml.dom.DomNode
gnu.xml.dom.DomPI
Unlike other DOM APIs in the "XML" feature, this one fully exposes the functionality it describes. So there is no reason inherent in DOM to avoid using this API, unless you want to rely on NOTATION declarations to associate meaning with your PIs; there is no vendor-neutal way to record those notations in DOM.
Also of note is that PI support is part of SAX, so that XML systems using PIs can choose among multiple APIs.
DomNotation
Constructor Summary | |
|
Method Summary | |
String |
|
String |
|
String |
|
String |
|
void |
|
void |
|
protected DomPI(DomDocument owner, String target, String data)
Constructs a ProcessingInstruction node associated with the specified document, with the specified data.This constructor should only be invoked by a Document object as part of its createProcessingInstruction functionality, or through a subclass which is similarly used in a "Sub-DOM" style layer.
public final String getData()
DOM L1 Returns the data associated with the processing instruction.
- Specified by:
- getData in interface ProcessingInstruction
public final String getNodeName()
DOM L1 Returns the target of the processing instruction (same as getTarget).
- Specified by:
- getNodeName in interface Node
- Overrides:
- getNodeName in interface DomNode
public final String getNodeValue()
DOM L1 Returns the data associated with the processing instruction (same as getData).
- Specified by:
- getNodeValue in interface Node
- Overrides:
- getNodeValue in interface DomNode
public final String getTarget()
DOM L1 Returns the target of the processing instruction.
- Specified by:
- getTarget in interface ProcessingInstruction
public final void setData(String data)
DOM L1 Assigns the data associated with the processing instruction; same as setNodeValue.
- Specified by:
- setData in interface ProcessingInstruction
public final void setNodeValue(String data)
DOM L1 Assigns the data associated with the processing instruction.
- Specified by:
- setNodeValue in interface Node
- Overrides:
- setNodeValue in interface DomNode