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:
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
 
Constructor Summary
ListNode()
           
 
Method Summary
 java.lang.Object get(int index)
           
 java.util.ArrayList getList()
           
 Node getNode(int index)
          cast the result of get(int) to Node
 java.lang.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 java.util.ArrayList list
Constructor Detail

ListNode

public ListNode()
Method Detail

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.