O - type of data to decoratepublic class PropertyDecorator<O> extends Decorator<O>
String.format(String, Object...)
method.
To use it, give him a class and the property name to render.
For example :
Decorator<Object> d = DecoratorUtil.newPropertyDecorator(PropertyDecorator.class,"property");
Decorator,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected Method |
m |
protected String |
property
name of property
|
| Modifier | Constructor and Description |
|---|---|
protected |
PropertyDecorator(Class<O> internalClass,
String property) |
| Modifier and Type | Method and Description |
|---|---|
protected Method |
getM() |
String |
getProperty() |
String |
toString(Object bean) |
getInternalClass, getTypeprotected PropertyDecorator(Class<O> internalClass, String property) throws NullPointerException
NullPointerExceptionCopyright © 2004-2013 CodeLutin. All Rights Reserved.