|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xml.utils.UnImplNode | +--org.apache.xalan.stree.Child | +--org.apache.xalan.stree.Parent
**For internal use only** Class representing a parent node. A parent is also a child unless it is the root node.
Constructor Summary | |
Parent(DocumentImpl doc)
Constructor Parent |
Method Summary | |
Node |
appendChild(Node newChild)
Append a child to the child list. |
void |
dispatchCharactersEvent(ContentHandler ch)
Handle a Characters event |
Child |
getChild(int i)
Get the nth child. |
int |
getChildCount()
Get the number of children this node currently contains. |
int |
getChildUID(int pos)
**For internal use only** Get the position of the child of an element in the document. |
Node |
getFirstChild()
The first child of this node. |
Node |
getLastChild()
The last child of this node. |
boolean |
hasChildNodes()
This is a convenience method to allow easy determination of whether a node has any children. |
boolean |
isComplete()
Return if this node has had all it's children added, i.e. |
void |
setComplete(boolean isComplete)
Set that this node's child list is complete, i.e. |
Methods inherited from class org.apache.xalan.stree.Child |
getAttributes,
getLevel,
getLocalName,
getNamespaceURI,
getNextSibling,
getOwnerDocument,
getParentNode,
getPrefix,
getPreviousSibling,
getTagName,
getUid,
isNamespaceNode,
isSupported,
setAttribute,
setLevel |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Parent(DocumentImpl doc)
doc
- Document objectMethod Detail |
public int getChildCount()
public boolean hasChildNodes()
true
if the node has any children,
false
if the node has no children.public int getChildUID(int pos)
pos
- Position of the child in this parent's children listpublic Child getChild(int i) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.NullPointerException
i
- the index of the child.public Node getFirstChild()
null
.public Node getLastChild()
null
.public Node appendChild(Node newChild) throws DOMException
newChild
- Must be a org.apache.xalan.stree.Child.public boolean isComplete()
public void setComplete(boolean isComplete)
isComplete
- flag indicating whether this node has had all it's children addedpublic void dispatchCharactersEvent(ContentHandler ch) throws SAXException
ch
- Content handler to handle SAX events
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |