com.gridsystems.beanfilter
Class BeanDescriptor

java.lang.Object
  extended by com.gridsystems.beanfilter.BeanDescriptor

public final class BeanDescriptor
extends java.lang.Object

Bean Fields Description for evaluation.

Version:
1.0
Author:
Rodrigo Ruiz, Xmas

Method Summary
static BeanDescriptor getInstance(java.lang.Class<?> c)
          Factory method.
 java.lang.reflect.Method getMethod(java.lang.String field)
          Gets the method needed to read the specified field.
 void push(java.lang.Class<?> parent, Token token)
          Push in stack last field processed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static BeanDescriptor getInstance(java.lang.Class<?> c)
Factory method. It gets a descriptor instance for the specified class.

Parameters:
c - The class for which we want a descriptor instance
Returns:
The descriptor

push

public void push(java.lang.Class<?> parent,
                 Token token)
          throws EvalException
Push in stack last field processed.

Parameters:
parent - Parent Class
token - Token
Throws:
EvalException - If Error

getMethod

public java.lang.reflect.Method getMethod(java.lang.String field)
Gets the method needed to read the specified field.

Parameters:
field - The field path
Returns:
The method to access to value of field. Null if number of methods obtained is zero or greater than 1.


Copyright © 2007-2008 Grid Systems, S.A.. All Rights Reserved.