org.fest.reflect.beanproperty.package.html Maven / Gradle / Ivy
The newest version!
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 {@link org.fest.reflect.core.Reflection org.fest.reflect.core.Reflection}
.
Here are some examples:
// import static {@link org.fest.reflect.core.Reflection org.fest.reflect.core.Reflection}.*;
// Retrieves the value of the property "name"
String name = {@link org.fest.reflect.core.Reflection#property(String) property}("name").{@link org.fest.reflect.beanproperty.PropertyName#ofType(Class) ofType}(String.class).{@link org.fest.reflect.beanproperty.PropertyType#in(Object) in}(person).{@link org.fest.reflect.beanproperty.Invoker#get() get}();
// Sets the value of the property "name" to "Yoda"
{@link org.fest.reflect.core.Reflection#property(String) property}("name").{@link org.fest.reflect.beanproperty.PropertyName#ofType(Class) ofType}(String.class).{@link org.fest.reflect.beanproperty.PropertyType#in(Object) in}(person).{@link org.fest.reflect.beanproperty.Invoker#set(Object) set}("Yoda");