|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.datadictionary.DictionaryBeanBase org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase org.kuali.rice.krad.datadictionary.ReferenceDefinition
public class ReferenceDefinition
The reference element specifies the name of a reference object that is required to exist in order for the primary business object to be created or modified on a BO. DD: See ReferenceDefinition.java JSTL: references are Maps with the following keys: attributeName (String) activeIndicatorAttributeName (String) activeIndicatorReversed (boolean String) attributeToHighlightOnFail (String) displayFieldName (String)
Field Summary | |
---|---|
protected String |
attributeName
|
protected String |
attributeToHighlightOnFail
|
protected Class<? extends BusinessObject> |
businessObjectClass
|
protected String |
collection
|
protected Class<? extends BusinessObject> |
collectionBusinessObjectClass
|
protected String |
displayFieldName
|
Fields inherited from class org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase |
---|
id |
Constructor Summary | |
---|---|
ReferenceDefinition()
|
Method Summary | |
---|---|
void |
completeValidation(Class rootBusinessObjectClass,
Class otherBusinessObjectClass)
Directly validate simple fields. |
String |
getAttributeName()
|
String |
getAttributeToHighlightOnFail()
Gets the attributeToHighlightOnFail attribute. |
Class<? extends BusinessObject> |
getBusinessObjectClass()
|
String |
getCollection()
|
Class<? extends BusinessObject> |
getCollectionBusinessObjectClass()
|
String |
getDisplayFieldName()
Gets the displayFieldName attribute. |
boolean |
isCollectionReference()
|
boolean |
isDisplayFieldNameSet()
This method returns true if the displayFieldName is set, otherwise it returns false. |
void |
setAttributeName(String attributeName)
attributeName is the name of a reference object that must exist and not be null. |
void |
setAttributeToHighlightOnFail(String attributeToHighlightOnFail)
attributeToHighlightOnFail is the name of the busines object attribute which will be highlighted when the default existence check fails. |
void |
setBusinessObjectClass(Class<? extends BusinessObject> businessObjectClass)
|
void |
setCollection(String collection)
collection is the name of a collection that must exist |
void |
setCollectionBusinessObjectClass(Class<? extends BusinessObject> collectionBusinessObjectClass)
Class that the specified collection represents. |
void |
setDisplayFieldName(String displayFieldName)
displayFieldName is the name of the field to pull the label as it will appear in an error message. |
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 |
---|
protected String attributeName
protected String attributeToHighlightOnFail
protected String displayFieldName
protected String collection
protected Class<? extends BusinessObject> collectionBusinessObjectClass
protected Class<? extends BusinessObject> businessObjectClass
Constructor Detail |
---|
public ReferenceDefinition()
Method Detail |
---|
public String getAttributeName()
public void setAttributeName(String attributeName)
IllegalArgumentException
- if the given attributeName is blankpublic String getAttributeToHighlightOnFail()
public void setAttributeToHighlightOnFail(String attributeToHighlightOnFail)
public String getDisplayFieldName()
public void setDisplayFieldName(String displayFieldName)
public boolean isDisplayFieldNameSet()
public String getCollection()
public void setCollection(String collection)
public boolean isCollectionReference()
public Class<? extends BusinessObject> getCollectionBusinessObjectClass()
public void setCollectionBusinessObjectClass(Class<? extends BusinessObject> collectionBusinessObjectClass)
public void completeValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass)
rootBusinessObjectClass
- Class of the BusinessObjectEntry which ultimately contains this definitionotherBusinessObjectClass
- other stuff required to complete validationorg.kuali.rice.krad.datadictionary.DataDictionaryDefinition#completeValidation(java.lang.Class,
java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
public Class<? extends BusinessObject> getBusinessObjectClass()
public void setBusinessObjectClass(Class<? extends BusinessObject> businessObjectClass)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |