Class AttributeDefinitionBase
java.lang.Object
org.kuali.rice.krad.datadictionary.DictionaryBeanBase
org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase
org.kuali.rice.krad.datadictionary.AttributeDefinitionBase
- All Implemented Interfaces:
Serializable,Cloneable,Copyable,DataDictionaryDefinition,DictionaryBean,Constrainable,ExistenceConstrainable,SimpleConstrainable,Constraint,ExistenceConstraint
- Direct Known Subclasses:
AttributeDefinition,ComplexAttributeDefinition
public abstract class AttributeDefinitionBase
extends DataDictionaryDefinitionBase
implements ExistenceConstrainable, SimpleConstrainable
Common class for attribute definitions in the DataDictionary, which contains
information relating to the display, validation, and general maintenance of a
specific attribute of an entry. An attribute can be a simple or complex attribute
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected org.kuali.rice.krad.data.metadata.DataObjectAttributeprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected SimpleConstraintprotected StringFields 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 TypeMethodDescriptionText that display a restriction on the value a field can holdorg.kuali.rice.krad.data.metadata.DataObjectAttributeThe description element is used to provide a long description of the attribute or collection.protected StringgetLabel()The label element is the field or collection name that will be shown on inquiry and maintenance screens.getName()Name of the attributeGets the SimpleConstraint which contains settings for required, min, max, minLength, and maxLength.The summary element is used to provide a short description of the attribute or collection.The required element allows values of "true" or "false".voidsetConstraintText(String constraintText) Setter for the constraint message textvoidsetDataObjectAttribute(org.kuali.rice.krad.data.metadata.DataObjectAttribute dataObjectAttribute) voidsetDescription(String description) The description element is used to provide a long description of the attribute or collection.voidsetDisplayLabelAttribute(String displayLabelAttribute) The displayLabelAttribute element is used to indicate that the label and short label should be obtained from another attribute.voidThe label element is the field or collection name that will be shown on inquiry and maintenance screens.voidName of the attributevoidsetRequired(Boolean required) Sets if this attribute is requiredvoidsetShortLabel(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.voidsetSimpleConstraint(SimpleConstraint simpleConstraint) Sets the SimpleConstraint which contains settings for required, min, max, minLength, and maxLength.voidsetSummary(String summary) The summary element is used to provide a short description of the attribute or collection.Methods inherited from class org.kuali.rice.krad.datadictionary.DataDictionaryDefinitionBase
completeValidation, completeValidation, 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, toString, wait, wait, waitMethods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode
-
Field Details
-
name
-
label
-
shortLabel
-
displayLabelAttribute
-
constraintText
-
summary
-
description
-
simpleConstraint
-
dataObjectAttribute
protected org.kuali.rice.krad.data.metadata.DataObjectAttribute dataObjectAttribute
-
-
Constructor Details
-
AttributeDefinitionBase
public AttributeDefinitionBase()
-
-
Method Details
-
getName
Name of the attribute- Specified by:
getNamein interfaceConstrainable- Returns:
- the name
-
setName
Name of the attribute- Parameters:
name-
-
getLabel
The label element is the field or collection name that will be shown on inquiry and maintenance screens. This will be overridden by presence of displayLabelAttribute element.- Returns:
- the label
-
setLabel
The label element is the field or collection name that will be shown on inquiry and maintenance screens. This will be overridden by presence of displayLabelAttribute element. -
getShortLabel
- Returns:
- the shortLabel, or the label if no shortLabel has been set
-
getDirectShortLabel
- Returns:
- the shortLabel directly, without substituting in the label
-
setShortLabel
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. This will be overridden by presence of displayLabelAttribute element. -
getConstraintText
Text that display a restriction on the value a field can holdFor example when the value must be a valid format (phone number, email), certain length, min/max value and so on this text can be used to indicate the constraint to the user. Generally displays with the control so it is visible when the user tabs to the field
- Returns:
- String text to display for the constraint message
-
setConstraintText
Setter for the constraint message text- Parameters:
constraintText-
-
getSummary
The summary element is used to provide a short description of the attribute or collection. This is designed to be used for help purposes.- Returns:
- the summary
-
setSummary
The summary element is used to provide a short description of the attribute or collection. This is designed to be used for help purposes. -
getDescription
The description element is used to provide a long description of the attribute or collection. This is designed to be used for help purposes.- Returns:
- the description
-
setDescription
The description element is used to provide a long description of the attribute or collection. This is designed to be used for help purposes. -
getDisplayLabelAttribute
-
setDisplayLabelAttribute
The displayLabelAttribute element is used to indicate that the label and short label should be obtained from another attribute. The label element and short label element defined for this attribute will be overridden. Instead, the label and short label values will be obtained by referencing the corresponding values from the attribute indicated by this element. -
getSimpleConstraint
Gets the SimpleConstraint which contains settings for required, min, max, minLength, and maxLength.- Specified by:
getSimpleConstraintin interfaceSimpleConstrainable- Returns:
- SimpleConstraint object
-
setSimpleConstraint
Sets the SimpleConstraint which contains settings for required, min, max, minLength, and maxLength.- Parameters:
simpleConstraint-
-
setRequired
Sets if this attribute is required- Parameters:
required- true when required, false otherwise
-
isRequired
The required element allows values of "true" or "false". A value of "true" indicates that a value must be entered for this business object when creating or editing a new business object.- Specified by:
isRequiredin interfaceExistenceConstraint
-
getDataObjectAttribute
public org.kuali.rice.krad.data.metadata.DataObjectAttribute getDataObjectAttribute() -
setDataObjectAttribute
public void setDataObjectAttribute(org.kuali.rice.krad.data.metadata.DataObjectAttribute dataObjectAttribute)
-