ca.infoway.messagebuilder.domainvalue.util
Class DescribableUtil

Package class diagram package DescribableUtil
java.lang.Object
  extended by ca.infoway.messagebuilder.domainvalue.util.DescribableUtil

public class DescribableUtil
extends Object

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".

Author:
BC Holmes

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

DescribableUtil

public DescribableUtil()
Method Detail

getDefaultDescription

public static String getDefaultDescription(Object object)

Gets the default description.

Parameters:
object - the object
Returns:
the default description

getCodeDescription

public static String getCodeDescription(Code code)

Gets the code description.

Parameters:
code - the code
Returns:
the code description


Copyright © 2013. All Rights Reserved.