Class DataDictionaryPropertyUtils
java.lang.Object
org.kuali.rice.krad.datadictionary.DataDictionaryPropertyUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassgetAttributeClass(Class boClass, String attributeName) This method determines the Class of the attributeName passed in.static ClassgetCollectionElementClass(Class boClass, String collectionName) This method determines the Class of the elements in the collectionName passed in.static booleanisCollectionPropertyOf(Class targetClass, String propertyName) static booleanisPropertyOf(Class targetClass, String propertyName)
-
Method Details
-
isPropertyOf
- 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
- 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
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
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
-