Package org.fest.reflect.beanproperty

Provides a "fluent" API for property access via the Bean Instrospection API.

See:
          Description

Class Summary
Invoker<T> Understands the use of instrospection to access a property from a JavaBean.
PropertyName Understands the name of a property to access using Bean Introspection.
PropertyType<T> Understands the type of a property to access using Bean Instrospection.
PropertyTypeRef<T> Understands the type of a property to access using Bean Instrospection.
 

Package org.fest.reflect.beanproperty Description

Provides a "fluent" API for property access via the Bean Instrospection API.

Note: Classes in this package are not intended to be used directly. To use them, you need to use the class org.fest.reflect.core.Reflection.

Here are some examples:

   // import static org.fest.reflect.core.Reflection.*;

   // Retrieves the value of the property "name"
   String name = property("name").ofType(String.class).in(person).get();
   
   // Sets the value of the property "name" to "Yoda"
   property("name").ofType(String.class).in(person).set("Yoda");



Copyright © 2007-2010 FEST (Fixtures for Easy Software Testing). All Rights Reserved.