jaxx.runtime.decorator
Class PropertyDecorator<O>
java.lang.Object
jaxx.runtime.decorator.Decorator<O>
jaxx.runtime.decorator.PropertyDecorator<O>
- Type Parameters:
O - type of data to decorate
- All Implemented Interfaces:
- Serializable
public class PropertyDecorator<O>
- extends Decorator<O>
Simple property decorator based on String.format(String, Object[]) method.
To use it, give him a class and the property name to render.
For example :
Decorator<Object> d = DecoratorUtils.newPropertyDecorator(PropertyDecorator.class,"expressions");
- Since:
- 1.7.2 (was previously
jaxx.runtime.PropertyDecorator)
- Author:
- chemit
- See Also:
Decorator,
Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
property
protected String property
- name of property
m
protected transient Method m
PropertyDecorator
protected PropertyDecorator(Class<O> internalClass,
String property)
throws NullPointerException
- Throws:
NullPointerException
toString
public String toString(Object bean)
- Specified by:
toString in class Decorator<O>
- Parameters:
bean - the bean to decorate
- Returns:
- the string value of the given bean
getProperty
public String getProperty()
getM
protected Method getM()
Copyright © 2008-2010 CodeLutin. All Rights Reserved.