Class PrimitiveAttributeDefinition
java.lang.Object
org.kuali.rice.krad.datadictionary.DictionaryBeanBase
org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase
org.kuali.rice.krad.datadictionary.PrimitiveAttributeDefinition
- All Implemented Interfaces:
Serializable,Cloneable,Copyable,DataDictionaryDefinition,DictionaryBean
- Direct Known Subclasses:
SupportAttributeDefinition
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:
-
Field Summary
FieldsFields inherited from class org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase
embeddedDataObjectMetadata, generatedFromMetadata, idFields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
componentCode, namespaceCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompleteValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass) Directly validate simple fields.voidcompleteValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass, ValidationTrace tracer) Directly validate simple fieldsvoidsetSourceName(String sourceName) sourceName is the name of the POJO property of the business objectvoidsetTargetName(String targetName) targetName is the name of attribute that corresponds to the sourceName in the looked up BOtoString()Methods inherited from class org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase
getId, hasEmbeddedDataObjectMetadata, setEmbeddedDataObjectMetadata, setGeneratedFromMetadata, setId, wasGeneratedFromMetadataMethods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCodeMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode
-
Field Details
-
sourceName
-
targetName
-
-
Constructor Details
-
PrimitiveAttributeDefinition
public PrimitiveAttributeDefinition()
-
-
Method Details
-
getSourceName
-
setSourceName
sourceName is the name of the POJO property of the business object- Throws:
IllegalArgumentException- if the given sourceName is blank
-
getTargetName
-
setTargetName
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
Directly validate simple fields.- Specified by:
completeValidationin interfaceDataDictionaryDefinition- Overrides:
completeValidationin classDataDictionaryDefinitionBase- Parameters:
rootBusinessObjectClass- Class of the BusinessObjectEntry which ultimately contains this definitionotherBusinessObjectClass- other stuff required to complete validation- See Also:
-
completeValidation
public void completeValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass, ValidationTrace tracer) Directly validate simple fields- Specified by:
completeValidationin interfaceDataDictionaryDefinition- Overrides:
completeValidationin classDataDictionaryDefinitionBase- Parameters:
rootBusinessObjectClass- Class of the BusinessObjectEntry which ultimately contains this definitionotherBusinessObjectClass- other stuff required to complete validationtracer-ValidationTraceclass used to track what was being validated at the time of any problems discovered- See Also:
-
toString
-