|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvoicexml.xml.XmlNodeList<T>
T - Type of the nodes in the list.public final class XmlNodeList<T extends XmlNode>
A list containing all XmlNodes of a parent node.
This wrapper class is needed to ensure that all child nodes that
are accessed via the Node.getChildNodes method are of the
requested type.
Copyright © 2006-2007 JVoiceXML group - http://jvoicexml.sourceforge.net/
XmlNode| Constructor Summary | |
|---|---|
XmlNodeList()
Constructs a new object. |
|
XmlNodeList(XmlNodeFactory<T> factory,
NodeList nodeList)
Construct a new node list. |
|
| Method Summary | |
|---|---|
boolean |
add(T node)
Appends the specified element to the end of this list. |
int |
getLength()
|
Node |
item(int index)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlNodeList()
public XmlNodeList(XmlNodeFactory<T> factory,
NodeList nodeList)
factory - The factory to resolve real T's.nodeList - The nodelist to encapsulate.| Method Detail |
|---|
public int getLength()
getLength in interface NodeListpublic Node item(int index)
item in interface NodeListpublic boolean add(T node)
Note: This has no effect on the document.
node - XmlNode to be appended to this list.
true (as per the general contract of the
Collection.add method).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||