com.agimatec.commons.config
Class ListNode

java.lang.Object
  extended by com.agimatec.commons.config.Node
      extended by com.agimatec.commons.config.CompositeNode
          extended by com.agimatec.commons.config.ListNode
All Implemented Interfaces:
Serializable

public class ListNode
extends CompositeNode

A config node representing a list of nodes.

Author:
Roman Stumm
See Also:
Serialized Form

Field Summary
protected  ArrayList list
           
 
Fields inherited from class com.agimatec.commons.config.Node
name
 
Constructor Summary
ListNode()
           
 
Method Summary
 Object get(int index)
           
 ArrayList getList()
           
 Node getNode(int index)
          cast the result of get(int) to Node
 Object getObjectValue()
           
 int nodeCount()
           
 
Methods inherited from class com.agimatec.commons.config.CompositeNode
getBoolean, getDouble, getFilePath, getInt, getInt, getList, getLong, getMap, getNode, getString, getURLPath
 
Methods inherited from class com.agimatec.commons.config.Node
evaluatePath, getName, setName, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

list

protected ArrayList list
Constructor Detail

ListNode

public ListNode()
Method Detail

getObjectValue

public Object getObjectValue()
Specified by:
getObjectValue in class Node

getList

public ArrayList getList()

get

public Object get(int index)

nodeCount

public int nodeCount()

getNode

public Node getNode(int index)
cast the result of get(int) to Node

Throws:
ClassCastException - when this is not possible


Copyright © 2008-2011. All Rights Reserved.