org.kuali.kfs.sys.document.validation.impl
Class AttributeReference
java.lang.Object
org.kuali.kfs.sys.document.validation.impl.AttributeReference
public class AttributeReference
- extends Object
This class refers to an attribute which has a value and is labeled in the DataDictionary.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributeReference
public AttributeReference(Class businessObjectClass,
String propertyName,
Object value)
- Constructor. It takes the value instead of the BO instance (using PropertyUtils or BeanUtils with the propertyName), in order
to promote the use of the property getter, to help usage searches and automated refactorings.
- Parameters:
businessObjectClass
- a class with a business object entry in the DataDictionarypropertyName
- the name of the attribute in the DD entry and on the form (for the error path)value
- the value of the property on the form (may be null).
getPropertyName
public String getPropertyName()
- Returns:
- the name of the attribute in the DD entry and on the form (for the error path)
getValueString
public String getValueString()
- Returns:
- the attribute value as a String
getLabel
public String getLabel()
- Returns:
- the label of the attribute in the DD
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.