public class ReferenceDefinition extends DataDictionaryDefinitionBase
Modifier and Type | Field and Description |
---|---|
protected String |
attributeName |
protected String |
attributeToHighlightOnFail |
protected Class<? extends BusinessObject> |
businessObjectClass |
protected String |
collection |
protected Class<? extends BusinessObject> |
collectionBusinessObjectClass |
protected String |
displayFieldName |
id
Constructor and Description |
---|
ReferenceDefinition() |
Modifier and Type | Method and Description |
---|---|
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() |
afterPropertiesSet, getId, setId
copy, copyProperties, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComponentCode, getNamespaceCode
protected String attributeName
protected String attributeToHighlightOnFail
protected String displayFieldName
protected String collection
protected Class<? extends BusinessObject> collectionBusinessObjectClass
protected Class<? extends BusinessObject> businessObjectClass
public ReferenceDefinition()
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)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.