|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kns.datadictionary.DataDictionaryDefinitionBase org.kuali.rice.kns.datadictionary.AttributeDefinition
public class AttributeDefinition
A single attribute definition in the DataDictionary, which contains information relating to the display, validation, and general maintenance of a specific attribute of an entry.
Field Summary | |
---|---|
protected AttributeSecurity |
attributeSecurity
|
protected ControlDefinition |
control
|
protected String |
description
|
protected String |
displayLabelAttribute
|
protected BigDecimal |
exclusiveMin
|
protected Boolean |
forceUppercase
|
protected String |
formatterClass
|
protected BigDecimal |
inclusiveMax
|
protected String |
label
|
protected Integer |
maxLength
|
protected String |
name
|
protected Boolean |
required
|
protected String |
shortLabel
|
protected String |
summary
|
protected Boolean |
unique
|
protected ValidationPattern |
validationPattern
|
Fields inherited from class org.kuali.rice.kns.datadictionary.DataDictionaryDefinitionBase |
---|
id |
Constructor Summary | |
---|---|
AttributeDefinition()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
This overridden method ... |
void |
completeValidation(Class rootObjectClass,
Class otherObjectClass)
Directly validate simple fields, call completeValidation on Definition fields. |
AttributeSecurity |
getAttributeSecurity()
|
ControlDefinition |
getControl()
|
String |
getDescription()
|
protected String |
getDirectShortLabel()
|
String |
getDisplayLabelAttribute()
|
BigDecimal |
getExclusiveMin()
|
Boolean |
getForceUppercase()
|
String |
getFormatterClass()
|
BigDecimal |
getInclusiveMax()
The inclusiveMax element determines the maximum allowable value for data entry editing purposes. |
String |
getLabel()
|
Integer |
getMaxLength()
|
String |
getName()
|
String |
getShortLabel()
|
String |
getSummary()
|
Boolean |
getUnique()
|
ValidationPattern |
getValidationPattern()
|
boolean |
hasAttributeSecurity()
|
boolean |
hasFormatterClass()
|
boolean |
hasValidationPattern()
|
Boolean |
isRequired()
|
void |
setAttributeSecurity(AttributeSecurity attributeSecurity)
|
void |
setControl(ControlDefinition control)
The control element defines the manner in which an attribute is displayed and the manner in which the attribute value is entered. |
void |
setDescription(String description)
The description element is used to provide a long description of the attribute or collection. |
void |
setDisplayLabelAttribute(String displayLabelAttribute)
The displayLabelAttribute element is used to indicate that the label and short label should be obtained from another attribute. |
void |
setExclusiveMin(BigDecimal exclusiveMin)
The exclusiveMin element determines the minimum allowable value for data entry editing purposes. |
void |
setForceUppercase(Boolean forceUppercase)
forceUppercase = convert user entry to uppercase and always display database value as uppercase. |
void |
setFormatterClass(String formatterClass)
The formatterClass element is used when custom formatting is required for display of the field value. |
void |
setInclusiveMax(BigDecimal inclusiveMax)
The inclusiveMax element determines the maximum allowable value for data entry editing purposes. |
void |
setLabel(String label)
The label element is the field or collection name that will be shown on inquiry and maintenance screens. |
void |
setMaxLength(Integer maxLength)
The maxLength element determines the maximum size of the field for data entry edit purposes and for display purposes. |
void |
setName(String name)
|
void |
setRequired(Boolean required)
The required element allows values of "true" or "false". |
void |
setShortLabel(String shortLabel)
The shortLabel element is the field or collection name that will be used in applications when a shorter name (than the label element) is required. |
void |
setSummary(String summary)
The summary element is used to provide a short description of the attribute or collection. |
void |
setUnique(Boolean unique)
|
void |
setValidationPattern(ValidationPattern validationPattern)
The validationPattern element defines the allowable character-level or field-level values for an attribute. |
String |
toString()
|
Methods inherited from class org.kuali.rice.kns.datadictionary.DataDictionaryDefinitionBase |
---|
getId, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Boolean forceUppercase
protected String name
protected String label
protected String shortLabel
protected String displayLabelAttribute
protected Integer maxLength
protected Boolean unique
protected BigDecimal exclusiveMin
protected BigDecimal inclusiveMax
protected ValidationPattern validationPattern
protected Boolean required
protected ControlDefinition control
protected String summary
protected String description
protected String formatterClass
protected AttributeSecurity attributeSecurity
Constructor Detail |
---|
public AttributeDefinition()
Method Detail |
---|
public void setForceUppercase(Boolean forceUppercase)
public Boolean getForceUppercase()
public String getName()
public void setName(String name)
public String getLabel()
public void setLabel(String label)
public String getShortLabel()
protected String getDirectShortLabel()
public void setShortLabel(String shortLabel)
public Integer getMaxLength()
public void setMaxLength(Integer maxLength)
public BigDecimal getExclusiveMin()
public void setExclusiveMin(BigDecimal exclusiveMin)
public BigDecimal getInclusiveMax()
public void setInclusiveMax(BigDecimal inclusiveMax)
public boolean hasValidationPattern()
public ValidationPattern getValidationPattern()
public void setValidationPattern(ValidationPattern validationPattern)
public void setRequired(Boolean required)
public Boolean isRequired()
public ControlDefinition getControl()
public void setControl(ControlDefinition control)
control
-
IllegalArgumentException
- if the given control is nullpublic String getSummary()
public void setSummary(String summary)
public String getDescription()
public void setDescription(String description)
public boolean hasFormatterClass()
public String getFormatterClass()
public void setFormatterClass(String formatterClass)
public void completeValidation(Class rootObjectClass, Class otherObjectClass)
completeValidation
in interface DataDictionaryDefinition
rootObjectClass
- Class of the BusinessObjectEntry which ultimately contains this definitionotherObjectClass
- other stuff required to complete validationDataDictionaryEntry.completeValidation()
public String toString()
toString
in class Object
Object.toString()
public String getDisplayLabelAttribute()
public void setDisplayLabelAttribute(String displayLabelAttribute)
public AttributeSecurity getAttributeSecurity()
public void setAttributeSecurity(AttributeSecurity attributeSecurity)
attributeSecurity
- the attributeSecurity to setpublic boolean hasAttributeSecurity()
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class DataDictionaryDefinitionBase
Exception
InitializingBean.afterPropertiesSet()
public Boolean getUnique()
public void setUnique(Boolean unique)
unique
- the unique to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |