All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.xml.parser.Parent

java.lang.Object
   |
   +----com.ibm.xml.parser.Child
           |
           +----com.ibm.xml.parser.Parent

public abstract class Parent
extends Child
Version:
19980205
See Also:
TXElement, TXDocument, DTD

Constructor Index

 o Parent()

Method Index

 o addElement(Child)
Add child.
 o elements()
Make new NodeEnumerator instance of children.
 o getChildren()
[DOM]
 o getChildrenArray()
Make array of children.
 o getElementsByTagName(String)
[DOM] Search descendants for elements matched name.
 o getFirst()
Return first child instance.
 o getFirstChild()
[DOM] Return the first child.
 o hasChildren()
[DOM]
 o insert(Child, int)
Insert a Child instance into specified position.
 o insertAfter(Node, Node)
 o insertAfterSilently(Node, Node)
 o insertBefore(Node, Node)
[DOM]
 o insertBeforeSilently(Node, Node)
 o removeChild(Node)
[DOM]
 o removeChildSilently(Child)
 o replaceChild(Node, Node)
[DOM]
 o replaceChildSilently(Node, Child)
 o searchDescendants(String)
Search descendats for an element.
 o searchDescendantsAll(String)
Search descendants for elements matched name.

Constructors

 o Parent
 public Parent()

Methods

 o getChildren
 public NodeList getChildren()
[DOM]

Overrides:
getChildren in class Child
 o elements
 public NodeEnumerator elements()
Make new NodeEnumerator instance of children.

 o hasChildren
 public boolean hasChildren()
[DOM]

Overrides:
hasChildren in class Child
 o getFirstChild
 public Node getFirstChild()
[DOM] Return the first child.

Returns:
null if this instance has no child.
Overrides:
getFirstChild in class Child
 o insert
 public void insert(Child ch,
                    int ind)
Insert a Child instance into specified position.

 o insertBefore
 public void insertBefore(Node newChild,
                          Node refChild) throws NotMyChildException
[DOM]

Overrides:
insertBefore in class Child
 o insertBeforeSilently
 public void insertBeforeSilently(Node newChild,
                                  Node refChild)
 o insertAfter
 public void insertAfter(Node newChild,
                         Node refChild) throws NotMyChildException
 o insertAfterSilently
 public void insertAfterSilently(Node newChild,
                                 Node refChild)
 o replaceChild
 public Node replaceChild(Node oldChild,
                          Node newChild) throws NotMyChildException
[DOM]

Overrides:
replaceChild in class Child
 o replaceChildSilently
 public Node replaceChildSilently(Node oldChild,
                                  Child newChild)
 o removeChild
 public Node removeChild(Node oldChild) throws NotMyChildException
[DOM]

Overrides:
removeChild in class Child
 o removeChildSilently
 public Node removeChildSilently(Child oldChild)
 o getElementsByTagName
 public NodeEnumerator getElementsByTagName(String name)
[DOM] Search descendants for elements matched name.

Returns:
NodeEnumerator of Element (TXElement).
 o searchDescendantsAll
 public TXElement[] searchDescendantsAll(String name)
Search descendants for elements matched name. Search recursively, not only children.

Returns:
all matched elements, never null
 o searchDescendants
 public TXElement searchDescendants(String ename)
Search descendats for an element. Return an element which is found first. Search recursively, not only children.

Returns:
first found element, null when not found
 o addElement
 public void addElement(Child a)
Add child.

 o getChildrenArray
 public Child[] getChildrenArray()
Make array of children.

 o getFirst
 public Child getFirst()
Return first child instance.


All Packages  Class Hierarchy  This Package  Previous  Next  Index