org.kuali.rice.krad.uif.util
Class ExpressionFunctions

java.lang.Object
  extended by org.kuali.rice.krad.uif.util.ExpressionFunctions

public class ExpressionFunctions
extends Object

Defines functions that can be used in el expressions within the UIF dictionary files

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
ExpressionFunctions()
           
 
Method Summary
static boolean empty(Object value)
          Checks whether the given value is null or blank string
static String getName(Class<?> clazz)
          Returns the name for the given class
static boolean isAssignableFrom(Class<?> assignableClass, Class<?> objectClass)
          Checks whether the given class parameter is assignable from the given object class parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionFunctions

public ExpressionFunctions()
Method Detail

isAssignableFrom

public static boolean isAssignableFrom(Class<?> assignableClass,
                                       Class<?> objectClass)
Checks whether the given class parameter is assignable from the given object class parameter

Parameters:
assignableClass - - class to use for assignable to
objectClass - - class to use for assignable from
Returns:
boolean true if the object class is of type assignable class, false if not

empty

public static boolean empty(Object value)
Checks whether the given value is null or blank string

Parameters:
value - - property value to check
Returns:
boolean true if value is null or blank, false if not

getName

public static String getName(Class<?> clazz)
Returns the name for the given class

Parameters:
clazz - - class object to return name for
Returns:
String class name or empty string if class is null


Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.