org.pm4j.core.pm.impl
Class ResKeyUtil

java.lang.Object
  extended by org.pm4j.core.pm.impl.ResKeyUtil

public final class ResKeyUtil
extends java.lang.Object


Constructor Summary
ResKeyUtil()
           
 
Method Summary
static java.lang.String classNameAndValue(java.lang.Object value)
          Creates a string based on the short class name and the toString result of the given instance.
static java.lang.String shortResKeyForClass(java.lang.Class<?> cls)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResKeyUtil

public ResKeyUtil()
Method Detail

shortResKeyForClass

public static java.lang.String shortResKeyForClass(java.lang.Class<?> cls)

classNameAndValue

public static java.lang.String classNameAndValue(java.lang.Object value)
Creates a string based on the short class name and the toString result of the given instance.

Example: For the value BAR of the enum Foo this method will generate 'Foo.BAR'.

Parameters:
value - The instance to generate the string for.
Returns:
The generated string. null in case of a null argument.