|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.fikin.pojostate.select.AbstractMethodMeta
net.sf.fikin.pojostate.select.DefaultMethodMeta
public class DefaultMethodMeta
MethodMeta with algorithms operating solely on top of Method only.
The UI name is the method's name with option to skip "get" from "getXXX" naming, by default false.
Description is like "implemented by <class>" with option to be defaulted to null. By default false;
Value formatter is DefaultFormat
with an option to provide other
formatter during construction time.
created on Mar 2, 2007
Constructor Summary | |
---|---|
DefaultMethodMeta(java.lang.reflect.Method method)
default constructor with method The default formatter instantiated is DefaultFormat |
|
DefaultMethodMeta(java.lang.reflect.Method method,
java.text.Format format)
default constructor with method and format |
Method Summary | |
---|---|
boolean |
getAllowNullDesc()
print null for description if true by default false. |
java.lang.String |
getDescription()
get method description if any return simple text with implementing class and public modifier if such. |
java.text.Format |
getFormat()
always return default formatter |
java.lang.String |
getName()
returns the Method name if getRemoveHeadingGet() is true it will remove "get"
from "getXXX" names |
boolean |
getRemoveHeadingGet()
get if to remove the leading method's "get" prefix |
void |
setAllowNullDesc(boolean flg)
set to true if null is to be used for description instead of default text by default this is set to false |
void |
setRemoveHeadingGet(boolean flg)
set if to remove the leading "get" prefix of the method's name |
Methods inherited from class net.sf.fikin.pojostate.select.AbstractMethodMeta |
---|
getMethod, setMethod |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultMethodMeta(java.lang.reflect.Method method)
The default formatter instantiated is DefaultFormat
method
- public DefaultMethodMeta(java.lang.reflect.Method method, java.text.Format format)
method
- Method Detail |
---|
public void setRemoveHeadingGet(boolean flg)
public boolean getRemoveHeadingGet()
public void setAllowNullDesc(boolean flg)
by default this is set to false
flg
- public boolean getAllowNullDesc()
by default false. It will print text in the format "implemented by <class>"
public java.lang.String getName()
if getRemoveHeadingGet()
is true it will remove "get"
from "getXXX" names
public java.lang.String getDescription()
return simple text with implementing class and public modifier if such.
if getAllowNullDesc()
is true it will print null.
if it is false, it will print predefined text format
public java.text.Format getFormat()
DefaultFormat
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |