jaxx.runtime.decorator
Class Decorator<O>
java.lang.Object
jaxx.runtime.decorator.Decorator<O>
- Type Parameters:
O - the type of data to decorate
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- JXPathDecorator, PropertyDecorator
public abstract class Decorator<O>
- extends Object
- implements Serializable
A simple contract to define a String decorator on any java objet.
- Since:
- 1.7.2 (was previously
jaxx.runtime.Decorator)
- Author:
- chemit
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
internalClass
protected final Class<O> internalClass
- Type of the data to decorate
Decorator
public Decorator(Class<O> internalClass)
throws NullPointerException
- Throws:
NullPointerException
toString
public abstract String toString(Object bean)
- Parameters:
bean - the bean to decorate
- Returns:
- the string value of the given bean
getInternalClass
public Class<O> getInternalClass()
Copyright © 2008-2010 CodeLutin. All Rights Reserved.