|
XML for Java Compatibility API 2.0.11 | ||||||||
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.Parent
The Parent class extends Child and provides services in support of non-leaf Nodes.
TXElement
,
TXDocument
,
DTD
,
Child
,
Node
, 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 | |
Parent()
|
Method Summary | |
void |
addElement(Child newChild)
Deprecated. Use appendChild() |
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node newChild)
Inserts the specified Node as the last Child in this Node's list of children. |
protected abstract void |
checkChildType(org.w3c.dom.Node child)
Check whether child is allowed to be insered in this node or not. |
java.util.Enumeration |
elements()
Return an Enumeration instance of all children of this Node. |
void |
expandEntityReferences()
|
org.w3c.dom.NodeList |
getChildNodes()
Returns a NodeList object that will enumerate all children of this Node. |
Child[] |
getChildrenArray()
Make an array of Child Nodes for all children of this Node. |
org.w3c.dom.Node |
getFirstChild()
Returns the first Child of this Node. |
org.w3c.dom.Node |
getFirstWithoutReference()
|
org.w3c.dom.Node |
getLastChild()
Returns the last Child of this Node. |
org.w3c.dom.Node |
getLastWithoutReference()
|
java.lang.String |
getText()
Return all text associated with this Node and its children without considering entities. |
boolean |
hasChildNodes()
Returns true if this Node has any children, or false if this Node has no children at all. |
void |
insert(org.w3c.dom.Node child,
int index)
Insert a Child Node into the specified position in this Node's list of children. |
org.w3c.dom.Node |
insertAfter(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
Inserts a Child Node (newChild) after the existing Child Node (refChild). |
org.w3c.dom.Node |
insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
Inserts a Child Node (newChild) before the existing Child Node (refChild). |
org.w3c.dom.Node |
insertFirst(org.w3c.dom.Node newChild)
Inserts the specified Node as the first Child in this Node's list of children. |
org.w3c.dom.Node |
insertLast(org.w3c.dom.Node newChild)
Inserts the specified Node as the last Child in this Node's list of children. |
protected void |
processAfterRemove(org.w3c.dom.Node oldChild)
|
protected void |
realInsert(org.w3c.dom.Node child,
int index)
Insert a Child Node into the specified position in this Node's list of children. |
org.w3c.dom.Node |
removeChild(org.w3c.dom.Node oldChild)
Removes the Child Node indicated by oldChild from this Nodes list of children, and returns it. |
org.w3c.dom.Node |
replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild)
Replaces the Child Node oldChild with newChild in this Node's list of children, and return the oldChild Node. |
Methods inherited from class com.ibm.xml.parser.Child |
clearDigest,
clone,
cloneNode,
equals,
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 |
Constructor Detail |
public Parent()
Method Detail |
public org.w3c.dom.NodeList getChildNodes()
This method is defined by DOM.
hasChildNodes()
,
elements()
,
getFirstChild()
,
getLastChild()
,
getChildrenArray()
public boolean hasChildNodes()
This method is defined by DOM.
getChildNodes()
,
elements()
,
getFirstChild()
,
getLastChild()
,
getChildrenArray()
public java.util.Enumeration elements()
hasChildNodes()
,
getChildNodes()
,
getFirstChild()
,
getLastChild()
,
getChildrenArray()
public Child[] getChildrenArray()
hasChildNodes()
,
getChildNodes()
,
getFirstChild()
,
elements()
public org.w3c.dom.Node getFirstChild()
This method is defined by DOM.
getLastChild()
,
hasChildNodes()
,
getChildNodes()
,
elements()
public org.w3c.dom.Node getFirstWithoutReference()
getFirstChild()
,
getLastWithoutReference()
public org.w3c.dom.Node getLastChild()
This method is defined by DOM.
getFirstChild()
,
hasChildNodes()
,
getChildNodes()
,
elements()
public org.w3c.dom.Node getLastWithoutReference()
getLastChild()
,
getFirstWithoutReference()
protected abstract void checkChildType(org.w3c.dom.Node child) throws org.w3c.dom.DOMException
protected void realInsert(org.w3c.dom.Node child, int index) throws org.w3c.dom.DOMException
child
- The Node being inserted. Must not DocumentFragment.index
- 0-based index into the list of children.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)
,
insertAfter(org.w3c.dom.Node, org.w3c.dom.Node)
,
insertFirst(org.w3c.dom.Node)
,
insertLast(org.w3c.dom.Node)
public void insert(org.w3c.dom.Node child, int index) throws org.w3c.dom.DOMException
child
- The Node being inserted.index
- 0-based index into the list of children.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)
,
insertAfter(org.w3c.dom.Node, org.w3c.dom.Node)
,
insertFirst(org.w3c.dom.Node)
,
insertLast(org.w3c.dom.Node)
public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild) throws org.w3c.dom.DOMException
This method is defined by DOM.
newChild
- The Child Node being inserted.refChild
- The Child Node to insert newChild before, or null if newChild is to be inserted at the end of the Child list.insert(org.w3c.dom.Node, int)
,
insertAfter(org.w3c.dom.Node, org.w3c.dom.Node)
,
insertFirst(org.w3c.dom.Node)
,
insertLast(org.w3c.dom.Node)
public org.w3c.dom.Node insertAfter(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild) throws org.w3c.dom.DOMException
newChild
- The Child Node being inserted.refChild
- The Child Node to insert newChild after, or null if newChild is to be inserted at the beginning of the Child list.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)
,
insert(org.w3c.dom.Node, int)
,
insertFirst(org.w3c.dom.Node)
,
insertLast(org.w3c.dom.Node)
public org.w3c.dom.Node insertFirst(org.w3c.dom.Node newChild)
newChild
- The Child Node being inserted.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)
,
insertAfter(org.w3c.dom.Node, org.w3c.dom.Node)
,
insert(org.w3c.dom.Node, int)
,
insertLast(org.w3c.dom.Node)
public org.w3c.dom.Node insertLast(org.w3c.dom.Node newChild)
newChild
- The Child Node being inserted.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)
,
insertAfter(org.w3c.dom.Node, org.w3c.dom.Node)
,
insertFirst(org.w3c.dom.Node)
,
insert(org.w3c.dom.Node, int)
,
appendChild(org.w3c.dom.Node)
public void addElement(Child newChild)
newChild
- The Child Node being inserted.public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild)
newChild
- The Child Node being inserted.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)
,
insertAfter(org.w3c.dom.Node, org.w3c.dom.Node)
,
insertFirst(org.w3c.dom.Node)
,
insert(org.w3c.dom.Node, int)
,
insertLast(org.w3c.dom.Node)
public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMException
This method is defined by DOM.
Note: The parameters are not intuitively positioned. The first parameter is the new child node which replaces the child node specified in the second parameter. This definition departs from the conventional "replace a by b" representation.
newChild
- The Child Node to replace with.oldChild
- The Child Node being replaced.removeChild(org.w3c.dom.Node)
public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMException
This method is defined by DOM.
oldChild
- The Child Node being removed.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node)
protected void processAfterRemove(org.w3c.dom.Node oldChild)
TXElement.collectNamespaceAttributes()
,
GeneralReference.collectNamespaceAttributes()
public void expandEntityReferences()
public java.lang.String getText()
This method is defined by Child.
Child.toXMLString(java.io.Writer, java.lang.String)
|
XML for Java Compatibility API 2.0.11 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |