|
XML for Java Compatibility API 2.0.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.xml.parser.Child | +--com.ibm.xml.parser.TXPI
The TXPI class implements the PI interface as defined by the Document Object Model (DOM), and implements the Namespace interface as defined by the W3C.
A PI Node is a "processing instruction" for use by XML4J or an application. The content of the PI Node is the entire content between the delimiters of the processing instruction.
ProcessingInstruction
,
Child
, Serialized FormFields inherited from class com.ibm.xml.parser.Child |
ATTDEF,
ATTLIST,
ELEMENT_DECL,
NAME_ATTDEF,
NAME_ATTLIST,
NAME_CDATA,
NAME_COMMENT,
NAME_DOCFRAGMENT,
NAME_DOCUMENT,
NAME_ELEMENT_DECL,
NAME_PSEUDONODE,
NAME_TEXT,
PSEUDONODE |
Constructor Summary | |
TXPI(java.lang.String name,
java.lang.String data)
Constructor. |
Method Summary | |
void |
acceptPost(Visitor visitor)
Implements the accept operation of the visitor design pattern when the end of a TXPI Node is recognized when traversing the document object tree. |
void |
acceptPre(Visitor visitor)
Implements the accept operation of the visitor design pattern when the start of a TXPI Node is recognized when traversing the document object tree. |
java.lang.Object |
clone()
Clone this PI Node using the appropriate factory. |
boolean |
equals(org.w3c.dom.Node arg,
boolean deep)
|
java.lang.String |
getData()
Returns the data of the PI. |
java.lang.String |
getName()
Deprecated. Use getNodeName() |
java.lang.String |
getNodeName()
This method is defined by DOM. |
short |
getNodeType()
Returns that this object is a PI Node. |
java.lang.String |
getNodeValue()
Returns the data of the PI. |
java.lang.String |
getTarget()
This method is defined by DOM. |
java.lang.String |
getText()
Return all text associated with this Node without considering entities. |
void |
setData(java.lang.String data)
Sets the data of the PI. |
void |
setNodeValue(java.lang.String data)
Sets the data of the PI. |
void |
setTarget(java.lang.String arg)
This method is defined by DOM. |
Methods inherited from class com.ibm.xml.parser.Child |
appendChild,
clearDigest,
cloneNode,
getAttributes,
getChildNodes,
getDigest,
getFactory,
getFirstChild,
getFirstWithoutReference,
getLastChild,
getLastWithoutReference,
getNextSibling,
getNextWithoutReference,
getOwnerDocument,
getParentNode,
getParentWithoutReference,
getPreviousSibling,
getPreviousWithoutReference,
getUserData,
hasChildNodes,
insertBefore,
makeXPointer,
print,
print,
removeChild,
replaceChild,
searchAncestors,
searchAncestors,
setFactory,
setUserData,
toXMLString,
toXMLString |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public TXPI(java.lang.String name, java.lang.String data)
name
- The first token following the markup.data
- From the first non white space character after PI target (name)
to the character immediately preceding the ?>
.Method Detail |
public java.lang.Object clone()
This method is defined by Child.
Child.clone()
public boolean equals(org.w3c.dom.Node arg, boolean deep)
deep
- Ignored.public short getNodeType()
This method is defined by DOM.
public java.lang.String getNodeName()
This method is defined by DOM.
public java.lang.String getName()
public java.lang.String getTarget()
This method is defined by DOM.
getName()
public void setTarget(java.lang.String arg)
This method is defined by DOM.
public java.lang.String getData()
?>
.
This method is defined by DOM.
setData(java.lang.String)
public java.lang.String getNodeValue()
?>
.
This method is defined by DOM.
public void setData(java.lang.String data)
?>
.
This method is defined by DOM.
data
- The PI data.getData()
public void setNodeValue(java.lang.String data)
?>
.
This method is defined by DOM.
data
- The PI data.getNodeValue()
public java.lang.String getText()
This method is defined by Child.
Child.toXMLString(java.io.Writer, java.lang.String)
public void acceptPre(Visitor visitor) throws java.lang.Exception
visitor
- The implemention of the Visitor operation (toXMLString, digest, ...)Visitor
,
TreeTraversal
,
NonRecursivePreorderTreeTraversal
,
TreeTraversalException
public void acceptPost(Visitor visitor) throws java.lang.Exception
visitor
- The implemention of the Visitor operation (toXMLString, digest, ...)Visitor
,
TreeTraversal
,
NonRecursivePreorderTreeTraversal
,
TreeTraversalException
|
XML for Java Compatibility API 2.0.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |