com.agimatec.commons.config
Class ListNode
java.lang.Object
com.agimatec.commons.config.Node
com.agimatec.commons.config.CompositeNode
com.agimatec.commons.config.ListNode
- All Implemented Interfaces:
- java.io.Serializable
public class ListNode
- extends CompositeNode
A config node representing a list of nodes.
- Author:
- Roman Stumm
- See Also:
- Serialized Form
|
Field Summary |
protected java.util.ArrayList |
list
|
| Fields inherited from class com.agimatec.commons.config.Node |
name |
| Methods inherited from class com.agimatec.commons.config.CompositeNode |
getBoolean, getDouble, getFilePath, getInt, getInt, getList, getLong, getMap, getNode, getString, getURLPath |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
list
protected java.util.ArrayList list
ListNode
public ListNode()
getObjectValue
public java.lang.Object getObjectValue()
- Specified by:
getObjectValue in class Node
getList
public java.util.ArrayList getList()
get
public java.lang.Object get(int index)
nodeCount
public int nodeCount()
getNode
public Node getNode(int index)
- cast the result of get(int) to Node
- Throws:
java.lang.ClassCastException - when this is not possible
Copyright © 2008-2012. All Rights Reserved.