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
-
Parent()
-
-
addElement(Child)
- Add child.
-
elements()
- Make new
NodeEnumerator
instance of children.
-
getChildren()
- [DOM]
-
getChildrenArray()
- Make array of children.
-
getElementsByTagName(String)
- [DOM] Search descendants for elements matched name.
-
getFirst()
- Return first child instance.
-
getFirstChild()
- [DOM] Return the first child.
-
hasChildren()
- [DOM]
-
insert(Child, int)
- Insert a Child instance into specified position.
-
insertAfter(Node, Node)
-
-
insertAfterSilently(Node, Node)
-
-
insertBefore(Node, Node)
- [DOM]
-
insertBeforeSilently(Node, Node)
-
-
removeChild(Node)
- [DOM]
-
removeChildSilently(Child)
-
-
replaceChild(Node, Node)
- [DOM]
-
replaceChildSilently(Node, Child)
-
-
searchDescendants(String)
- Search descendats for an element.
-
searchDescendantsAll(String)
- Search descendants for elements matched name.
Parent
public Parent()
getChildren
public NodeList getChildren()
- [DOM]
- Overrides:
- getChildren in class Child
elements
public NodeEnumerator elements()
- Make new
NodeEnumerator
instance of children.
hasChildren
public boolean hasChildren()
- [DOM]
- Overrides:
- hasChildren in class Child
getFirstChild
public Node getFirstChild()
- [DOM] Return the first child.
- Returns:
- null if this instance has no child.
- Overrides:
- getFirstChild in class Child
insert
public void insert(Child ch,
int ind)
- Insert a Child instance into specified position.
insertBefore
public void insertBefore(Node newChild,
Node refChild) throws NotMyChildException
- [DOM]
- Overrides:
- insertBefore in class Child
insertBeforeSilently
public void insertBeforeSilently(Node newChild,
Node refChild)
insertAfter
public void insertAfter(Node newChild,
Node refChild) throws NotMyChildException
insertAfterSilently
public void insertAfterSilently(Node newChild,
Node refChild)
replaceChild
public Node replaceChild(Node oldChild,
Node newChild) throws NotMyChildException
- [DOM]
- Overrides:
- replaceChild in class Child
replaceChildSilently
public Node replaceChildSilently(Node oldChild,
Child newChild)
removeChild
public Node removeChild(Node oldChild) throws NotMyChildException
- [DOM]
- Overrides:
- removeChild in class Child
removeChildSilently
public Node removeChildSilently(Child oldChild)
getElementsByTagName
public NodeEnumerator getElementsByTagName(String name)
- [DOM] Search descendants for elements matched name.
- Returns:
-
NodeEnumerator
of Element
(TXElement
).
searchDescendantsAll
public TXElement[] searchDescendantsAll(String name)
- Search descendants for elements matched name.
Search recursively, not only children.
- Returns:
- all matched elements, never null
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
addElement
public void addElement(Child a)
- Add child.
getChildrenArray
public Child[] getChildrenArray()
- Make array of children.
getFirst
public Child getFirst()
- Return first child instance.
All Packages Class Hierarchy This Package Previous Next Index