org.kuali.rice.krad.datadictionary
Class PrimitiveAttributeDefinition

java.lang.Object
  extended by org.kuali.rice.krad.datadictionary.DictionaryBeanBase
      extended by org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase
          extended by org.kuali.rice.krad.datadictionary.PrimitiveAttributeDefinition
All Implemented Interfaces:
Serializable, DataDictionaryDefinition, DictionaryBean, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
SupportAttributeDefinition

public class PrimitiveAttributeDefinition
extends DataDictionaryDefinitionBase

The primitiveAttribute element identifies one pair of corresponding fields in the primary business object and the related business object. JSTL: primitiveAttribute is a Map which is accessed by the sequential key of "0", "1", etc. Each entry contains the following keys: sourceName (String) targetName (String) The value corresponding to the sourceName key is the attribute name defined for the primary business object. The value corresponding to the targetName key is the attribute name for the object being referenced by objectAttributeName.

See Also:
Serialized Form

Field Summary
protected  String sourceName
           
protected  String targetName
           
 
Fields inherited from class org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase
id
 
Constructor Summary
PrimitiveAttributeDefinition()
           
 
Method Summary
 void completeValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass)
          Directly validate simple fields.
 void completeValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass, ValidationTrace tracer)
          Directly validate simple fields
 String getSourceName()
           
 String getTargetName()
           
 void setSourceName(String sourceName)
          sourceName is the name of the POJO property of the business object
 void setTargetName(String targetName)
          targetName is the name of attribute that corresponds to the sourceName in the looked up BO
 String toString()
           
 
Methods inherited from class org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase
afterPropertiesSet, getId, setId
 
Methods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
copy, copyProperties, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean
getComponentCode, getNamespaceCode
 

Field Detail

sourceName

protected String sourceName

targetName

protected String targetName
Constructor Detail

PrimitiveAttributeDefinition

public PrimitiveAttributeDefinition()
Method Detail

getSourceName

public String getSourceName()
Returns:
sourceName

setSourceName

public void setSourceName(String sourceName)
sourceName is the name of the POJO property of the business object

Throws:
IllegalArgumentException - if the given sourceName is blank

getTargetName

public String getTargetName()
Returns:
targetName

setTargetName

public void setTargetName(String targetName)
targetName is the name of attribute that corresponds to the sourceName in the looked up BO

Throws:
IllegalArgumentException - if the given targetName is blank

completeValidation

public void completeValidation(Class rootBusinessObjectClass,
                               Class otherBusinessObjectClass)
Directly validate simple fields.

Parameters:
rootBusinessObjectClass - Class of the BusinessObjectEntry which ultimately contains this definition
otherBusinessObjectClass - other stuff required to complete validation
See Also:
DataDictionaryDefinition.completeValidation(java.lang.Class, java.lang.Class)

completeValidation

public void completeValidation(Class rootBusinessObjectClass,
                               Class otherBusinessObjectClass,
                               ValidationTrace tracer)
Directly validate simple fields

See Also:
DataDictionaryEntry.completeValidation(org.kuali.rice.krad.datadictionary.validator.ValidationTrace)

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


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