|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xml.utils.UnImplNode | +--weblogic.apache.xalan.stree.Child | +--weblogic.apache.xalan.stree.Parent
Class representing a parent node. A parent is also a child unless it is the root node.
This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.
Field Summary | |
protected int |
m_childCount
Number of children of this node. |
protected int |
m_posInChildList
The position of this node in its parent's children list |
Fields inherited from class weblogic.apache.xalan.stree.Child |
m_doc,
m_parent |
Constructor Summary | |
Parent(DocumentImpl doc)
Constructor Parent |
Method Summary | |
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node newChild)
Append a child to the child list. |
void |
dispatchCharactersEvent(org.xml.sax.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)
Get the position of the child of an element in the document. |
org.w3c.dom.Node |
getFirstChild()
The first child of this node. |
org.w3c.dom.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. |
protected void |
throwParseError(java.lang.Exception e)
Throw a ParseError exception |
Methods inherited from class weblogic.apache.xalan.stree.Child |
getAttributes,
getLevel,
getLocalName,
getNamespaceURI,
getNextSibling,
getOwnerDocument,
getParentNode,
getPrefix,
getPreviousSibling,
getTagName,
getTransformer,
getUid,
isNamespaceNode,
isSupported,
setAttribute,
setDoc,
setLevel,
setParent,
setUid,
throwIfParseError |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected int m_posInChildList
protected int m_childCount
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 org.w3c.dom.Node getFirstChild()
null
.
public org.w3c.dom.Node getLastChild()
null
.
public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild) throws org.w3c.dom.DOMException
newChild
- Must be a weblogic.apache.xalan.stree.Child.public boolean isComplete()
public void setComplete(boolean isComplete)
isComplete
- flag indicating whether this node has had all it's children addedprotected void throwParseError(java.lang.Exception e)
e
- The original exceptionpublic void dispatchCharactersEvent(org.xml.sax.ContentHandler ch) throws org.xml.sax.SAXException
ch
- Content handler to handle SAX events
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |