| Contents | Package | Class | Tree | Deprecated | Index | Help | XML for Java | ||
| PREV | NEXT | SHOW LISTS | HIDE LISTS | ||
java.lang.Object
|
+----com.ibm.xml.parser.Child
Node is the base type of most objects in the Document Object Model. It may have an arbitrary number (including zero) of sequentially ordered Child Nodes. It usually has a parent Node; the exception being that the root Node in a document hierarchy has no parent.
| Field Summary | |
| static int | ATTDEF
|
| static int | ATTLIST
|
| static int | DOCUMENTTYPE
|
| static int | ELEMENTDEFINITION
|
| static int | ENTITY
|
| static int | GENERALREFERENCE
|
| static int | NOTATION
|
| static int | PSEUDONODE
|
| Constructor Summary | |
| Child()
|
|
| Method Summary | |
| void | clearDigest()
|
| java.lang.Object | clone()
|
| NodeIterator | getChildNodes()
|
| byte[] | getDigest()
|
| ElementFactory | getFactory()
|
| Node | getFirstChild()
|
| Node | getNextSibling()
|
| Node | getParentNode()
|
| Node | getPreviousSibling()
|
| java.lang.String | getText()
|
| boolean | hasChildNodes()
|
| Node | insertBefore(Node newChild,
Node refChild)
|
| XPointer | makeXPointer()
|
| void | print(java.io.PrintWriter pw,
java.lang.String enc)
|
| void | print(java.io.PrintWriter pw)
|
| Node | removeChild(Node oldChild)
|
| Node | replaceChild(Node oldChild,
Node newChild)
|
| TXElement | searchAncestors(java.lang.String qName)
|
| TXElement | searchAncestors(int matchType,
java.lang.String uri,
java.lang.String qNameOrLocalName)
|
| void | setFactory(ElementFactory factory)
|
| java.lang.String | toString()
|
| java.lang.String | toString(java.lang.String enc)
|
| Methods inherited from class java.lang.Object |
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DOCUMENTTYPE
public static final int ELEMENTDEFINITION
public static final int ATTLIST
public static final int ATTDEF
public static final int ENTITY
public static final int NOTATION
public static final int GENERALREFERENCE
public static final int PSEUDONODE
| Constructor Detail |
public Child()
| Method Detail |
public abstract java.lang.Object clone()
public Node getParentNode()
This method is defined by DOM.
public NodeIterator getChildNodes()
This method is defined by DOM.
public boolean hasChildNodes()
This method is defined by DOM.
public Node getFirstChild()
This method is defined by DOM.
public Node getPreviousSibling()
This method is defined by DOM.
public Node getNextSibling()
This method is defined by DOM.
public Node insertBefore(Node newChild,
Node refChild) throws NotMyChildException
This method is defined by DOM.
newChild
- Not used.
refChild
- Not used.
public Node replaceChild(Node oldChild,
Node newChild) throws NotMyChildException
This method is defined by DOM.
oldChild
- Not used.
newChild
- Not used.
public Node removeChild(Node oldChild) throws NotMyChildException
This method is defined by DOM.
oldChild
- Not used.
public java.lang.String getText()
public TXElement searchAncestors(java.lang.String qName)
qName
- Qualified name to match against in all ancestors.
public TXElement searchAncestors(int matchType,
java.lang.String uri,
java.lang.String qNameOrLocalName)
matchType
- Namespace match type: Match.QNAME, Match.NSLOCAL, Match.NS
uri
- When matching a URI, specify the value to match; otherwise, specify null.
qNameOrLocalName
- When matching a qualified name or local name, specify the value to match; otherwise, specify null.
public java.lang.String toString()
<, >, &, ', and "
will be represented as <, >, &, ', " .public java.lang.String toString(java.lang.String enc)
<, >, &, ', and "
will be represented as <, >, &, ', " .
enc
- Java character encoding to use.
public void print(java.io.PrintWriter pw,
java.lang.String enc)
<, >, &, ', and "
will be represented as <, >, &, ', " .
pw
- The character output stream to use.
enc
- Java character encoding in use by pw.
public void print(java.io.PrintWriter pw)
<, >, &, ', and "
will be represented as <, >, &, ', " .
pw
- The character output stream to use.
public ElementFactory getFactory()
public void setFactory(ElementFactory factory)
factory
- The factory to be used in creating this Node.
public byte[] getDigest()
public void clearDigest()
public XPointer makeXPointer()
| Contents | Package | Class | Tree | Deprecated | Index | Help | |||
| PREV | NEXT | SHOW LISTS | HIDE LISTS | ||