Class DataDictionaryPropertyUtils

java.lang.Object
org.kuali.rice.krad.datadictionary.DataDictionaryPropertyUtils

public final class DataDictionaryPropertyUtils extends Object
  • Method Details

    • isPropertyOf

      public static boolean isPropertyOf(Class targetClass, String propertyName)
      Returns:
      true if the given propertyName names a property of the given class
      Throws:
      CompletionException - if there is a problem accessing the named property on the given class
    • isCollectionPropertyOf

      public static boolean isCollectionPropertyOf(Class targetClass, String propertyName)
      Returns:
      true if the given propertyName names a Collection property of the given class
      Throws:
      CompletionException - if there is a problem accessing the named property on the given class
    • getAttributeClass

      public static Class getAttributeClass(Class boClass, String attributeName)
      This method determines the Class of the attributeName passed in. Null will be returned if the member is not available, or if a reflection exception is thrown.
      Parameters:
      boClass - - Class that the attributeName property exists in.
      attributeName - - Name of the attribute you want a class for.
      Returns:
      The Class of the attributeName, if the attribute exists on the rootClass. Null otherwise.
    • getCollectionElementClass

      public static Class getCollectionElementClass(Class boClass, String collectionName)
      This method determines the Class of the elements in the collectionName passed in.
      Parameters:
      boClass - Class that the collectionName collection exists in.
      collectionName - the name of the collection you want the element class for
      Returns:
      collection element type