com.ibm.xml.parser
Class TXDocumentFragment
java.lang.Object
|
+--com.ibm.xml.parser.Child
|
+--com.ibm.xml.parser.Parent
|
+--com.ibm.xml.parser.TXDocumentFragment
- public class TXDocumentFragment
- extends Parent
- implements DocumentFragment
- Version:
- Revision: 41 1.5 src/com/ibm/xml/parser/TXDocumentFragment.java, xml4jsrc, xml4j-jtcsv, xml4j_1_1_16
- See Also:
DocumentFragment
,
Parent
, Serialized Form
Fields 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 |
Method Summary |
void |
acceptPost(Visitor visitor)
Implements the accept operation of the visitor design pattern when the end of
a TXDocumentFragment 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 TXDocumentFragment Node is recognized when traversing the document object tree. |
protected void |
checkChildType(Node child)
Check whether child is allowed to be insered in this node or not. |
java.lang.Object |
clone()
|
Node |
cloneNode(boolean deep)
|
boolean |
equals(Node arg,
boolean deep)
|
java.lang.String |
getNodeName()
This method is defined by DOM. |
short |
getNodeType()
Returns that this object is a DocumentFragment Node. |
Methods inherited from class com.ibm.xml.parser.Parent |
addElement,
appendChild,
elements,
expandEntityReferences,
getChildNodes,
getChildrenArray,
getFirstChild,
getFirstWithoutReference,
getLastChild,
getLastWithoutReference,
getText,
hasChildNodes,
insert,
insertAfter,
insertBefore,
insertFirst,
insertLast,
processAfterRemove,
realInsert,
removeChild,
replaceChild |
Methods inherited from class com.ibm.xml.parser.Child |
clearDigest,
getAttributes,
getDigest,
getFactory,
getNextSibling,
getNextWithoutReference,
getNodeValue,
getOwnerDocument,
getParentNode,
getParentWithoutReference,
getPreviousSibling,
getPreviousWithoutReference,
getUserData,
makeXPointer,
print,
print,
searchAncestors,
searchAncestors,
setFactory,
setNodeValue,
setUserData,
toXMLString,
toXMLString |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
TXDocumentFragment
public TXDocumentFragment()
- Constructor.
clone
public java.lang.Object clone()
- Overrides:
- clone in class Child
cloneNode
public Node cloneNode(boolean deep)
- Overrides:
- cloneNode in class Child
equals
public boolean equals(Node arg,
boolean deep)
- Overrides:
- equals in class Child
getNodeType
public short getNodeType()
- Returns that this object is a DocumentFragment Node.
This method is defined by DOM.
- Returns:
- DocumentFragment Node indicator.
getNodeName
public java.lang.String getNodeName()
This method is defined by DOM.
acceptPre
public void acceptPre(Visitor visitor)
throws java.lang.Exception
- Implements the accept operation of the visitor design pattern when the start of
a TXDocumentFragment Node is recognized when traversing the document object tree.
- Parameters:
visitor
- The implemention of the Visitor operation (toXMLString, digest, ...)- Throws:
- java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
- See Also:
Visitor
,
TreeTraversal
,
NonRecursivePreorderTreeTraversal
,
TreeTraversalException
acceptPost
public void acceptPost(Visitor visitor)
throws java.lang.Exception
- Implements the accept operation of the visitor design pattern when the end of
a TXDocumentFragment Node is recognized when traversing the document object tree.
- Parameters:
visitor
- The implemention of the Visitor operation (toXMLString, digest, ...)- Throws:
- java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
- See Also:
Visitor
,
TreeTraversal
,
NonRecursivePreorderTreeTraversal
,
TreeTraversalException
checkChildType
protected void checkChildType(Node child)
throws DOMException
- Check whether child is allowed to be insered in this node or not.
When not allowed, a DOMException with HIERARCHY_REQUEST_ERR is thrown.
- Overrides:
- checkChildType in class Parent