public class ReferenceDefinition extends DataDictionaryDefinitionBase
Modifier and Type | Field and Description |
---|---|
protected String |
attributeName |
protected String |
attributeToHighlightOnFail |
protected Class<?> |
businessObjectClass |
protected String |
collection |
protected Class<?> |
collectionBusinessObjectClass |
protected String |
displayFieldName |
embeddedDataObjectMetadata, generatedFromMetadata, id
componentCode, namespaceCode
Constructor and Description |
---|
ReferenceDefinition() |
Modifier and Type | Method and Description |
---|---|
void |
completeValidation(Class<?> rootBusinessObjectClass,
Class<?> otherBusinessObjectClass,
ValidationTrace tracer)
Empty implementation so that all subclasses do not need to implement this method if they have no local validation to perform.
|
void |
dataDictionaryPostProcessing()
Perform any needed post-processing of the bean properties.
|
String |
getAttributeName() |
String |
getAttributeToHighlightOnFail()
Gets the attributeToHighlightOnFail attribute.
|
Class<?> |
getBusinessObjectClass() |
String |
getCollection() |
Class<?> |
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<?> businessObjectClass) |
void |
setCollection(String collection)
collection is the name of a collection that must exist
|
void |
setCollectionBusinessObjectClass(Class<?> 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.
|
completeValidation, getId, hasEmbeddedDataObjectMetadata, setEmbeddedDataObjectMetadata, setGeneratedFromMetadata, setId, wasGeneratedFromMetadata
clone, copy, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponentCode, getNamespaceCode
protected String attributeName
protected String attributeToHighlightOnFail
protected String displayFieldName
protected String collection
protected Class<?> collectionBusinessObjectClass
protected Class<?> 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<?> getCollectionBusinessObjectClass()
public void setCollectionBusinessObjectClass(Class<?> collectionBusinessObjectClass)
public void dataDictionaryPostProcessing()
DictionaryBean
dataDictionaryPostProcessing
in interface DictionaryBean
dataDictionaryPostProcessing
in class DictionaryBeanBase
public void completeValidation(Class<?> rootBusinessObjectClass, Class<?> otherBusinessObjectClass, ValidationTrace tracer)
DataDictionaryDefinitionBase
completeValidation
in interface DataDictionaryDefinition
completeValidation
in class DataDictionaryDefinitionBase
rootBusinessObjectClass
- Class of the BusinessObjectEntry which ultimately contains this definitionotherBusinessObjectClass
- other stuff required to complete validationtracer
- ValidationTrace
class used to track what was being validated at the time of any problems discoveredpublic Class<?> getBusinessObjectClass()
public void setBusinessObjectClass(Class<?> businessObjectClass)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.