|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.infoway.messagebuilder.domainvalue.util.DescribableUtil
public class DescribableUtil
Determine a standard description of an object.
This class is ideally designed for enums, which typically have names like
MY_INTERESTING_VALUE
. This utility will convert the description to
"My interesting value".
Constructor Summary | |
---|---|
DescribableUtil()
|
Method Summary | |
---|---|
static String |
getCodeDescription(Code code)
Gets the code description. |
static String |
getDefaultDescription(Object object)
Gets the default description. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DescribableUtil()
Method Detail |
---|
public static String getDefaultDescription(Object object)
Gets the default description.
object
- the object
public static String getCodeDescription(Code code)
Gets the code description.
code
- the code
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |