com.gridsystems.beanfilter
Class CollectionValue
java.lang.Object
com.gridsystems.beanfilter.EvalValue
com.gridsystems.beanfilter.CollectionValue
public class CollectionValue
- extends EvalValue
List / Set Value.
- Version:
- 1.0
- Author:
- Rodrigo Ruiz
|
Method Summary |
void |
add(EvalValue value,
java.lang.Class<?> parentClass)
Adds an item to this collection. |
java.lang.Class<?> |
getClassValue(java.lang.Class<?> parentClass)
|
java.lang.Object |
getValue(java.lang.Object src)
Gets the value. |
void |
setTypeList(int typeList)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CollectionValue
public CollectionValue(Token token)
- Creates a new instance.
- Parameters:
token - The token
getValue
public java.lang.Object getValue(java.lang.Object src)
throws EvalException
- Gets the value.
- Specified by:
getValue in class EvalValue
- Parameters:
src - The data source
- Returns:
- The value
- Throws:
EvalException - FTR005: Unknown field path
add
public void add(EvalValue value,
java.lang.Class<?> parentClass)
throws EvalException
- Adds an item to this collection.
- Parameters:
value - The item to addparentClass - Parent Class
- Throws:
EvalException - If an error occurs
toString
public java.lang.String toString()
-
- Overrides:
toString in class java.lang.Object
setTypeList
public void setTypeList(int typeList)
- Parameters:
typeList - The typeList to set.
getClassValue
public java.lang.Class<?> getClassValue(java.lang.Class<?> parentClass)
-
- Specified by:
getClassValue in class EvalValue
- Parameters:
parentClass - Parent Class
- Returns:
- Return the Java Class that represents or null if it is unknown.
Copyright © 2007-2008 Grid Systems, S.A.. All Rights Reserved.