jaxx.runtime.decorator
Class Decorator<O>

java.lang.Object
  extended by 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

Field Summary
protected  Class<O> internalClass
          Type of the data to decorate
 
Constructor Summary
Decorator(Class<O> internalClass)
           
 
Method Summary
 Class<O> getInternalClass()
           
abstract  String toString(Object bean)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

internalClass

protected final Class<O> internalClass
Type of the data to decorate

Constructor Detail

Decorator

public Decorator(Class<O> internalClass)
          throws NullPointerException
Throws:
NullPointerException
Method Detail

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.