|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.fikin.pojostate.state.AbstractDecoratorProperty
public abstract class AbstractDecoratorProperty
Prototype of Property methods.
Name, description and format are based on decorating an assigned
MethodMeta object.
Subclasses are expected to implement getValue(). created on Mar 1, 2007
| Constructor Summary | |
|---|---|
AbstractDecoratorProperty(MethodMeta method)
|
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
compare to the given object The comparison logic as following: If the object is another Property it will compare
getName()
If the object is a lava.lang.String it will compare it to
getName()
In all other cases it will throw ClassCastException
|
java.lang.String |
getDescription()
get key's description if any |
java.text.Format |
getFormat()
get key's description if any |
java.lang.reflect.Method |
getMethod()
Underlying java.lang.reflect.method object, represented by this Property |
MethodMeta |
getMethodMeta()
|
java.lang.String |
getName()
get key's name |
protected java.lang.String |
obtainValue(java.lang.Object pojo)
prototype method implementing actual method execution, obtaining the result and applying formatting to it before returning it to the caller |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.fikin.pojostate.Property |
|---|
getValue |
| Constructor Detail |
|---|
public AbstractDecoratorProperty(MethodMeta method)
| Method Detail |
|---|
public java.lang.String getName()
getName in interface MethodMetapublic java.lang.String getDescription()
getDescription in interface MethodMetapublic java.text.Format getFormat()
getFormat in interface MethodMetapublic MethodMeta getMethodMeta()
MethodMeta objectpublic java.lang.reflect.Method getMethod()
MethodMeta
getMethod in interface MethodMeta
public int compareTo(java.lang.Object o)
throws java.lang.ClassCastException
The comparison logic as following:
Property it will compare
getName()getName()
compareTo in interface java.lang.Comparablejava.lang.ClassCastException
protected java.lang.String obtainValue(java.lang.Object pojo)
throws DecorationException
DecorationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||