org.kuali.kfs.sys.document.validation.impl
Class AttributeReference

java.lang.Object
  extended by 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.


Constructor Summary
AttributeReference(Class businessObjectClass, String propertyName, Object value)
          Constructor.
 
Method Summary
 String getLabel()
           
 String getPropertyName()
           
 String getValueString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 DataDictionary
propertyName - 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).
Method Detail

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.