public abstract class AttributeDefinitionBase extends DataDictionaryDefinitionBase implements ExistenceConstrainable, SimpleConstrainable
Modifier and Type | Field and Description |
---|---|
protected String |
constraintText |
protected DataObjectAttribute |
dataObjectAttribute |
protected String |
description |
protected String |
displayLabelAttribute |
protected String |
label |
protected String |
name |
protected String |
shortLabel |
protected SimpleConstraint |
simpleConstraint |
protected String |
summary |
embeddedDataObjectMetadata, generatedFromMetadata, id
componentCode, namespaceCode
Constructor and Description |
---|
AttributeDefinitionBase() |
Modifier and Type | Method and Description |
---|---|
String |
getConstraintText()
Text that display a restriction on the value a field can hold
|
DataObjectAttribute |
getDataObjectAttribute() |
String |
getDescription()
The description element is used to provide a long description of the
attribute or collection.
|
protected String |
getDirectShortLabel() |
String |
getDisplayLabelAttribute() |
String |
getLabel()
The label element is the field or collection name that will be shown on
inquiry and maintenance screens.
|
String |
getName()
Name of the attribute
|
String |
getShortLabel() |
SimpleConstraint |
getSimpleConstraint()
Gets the SimpleConstraint which contains settings for required, min, max, minLength, and maxLength.
|
String |
getSummary()
The summary element is used to provide a short description of the
attribute or collection.
|
Boolean |
isRequired()
The required element allows values of "true" or "false".
|
void |
setConstraintText(String constraintText)
Setter for the constraint message text
|
void |
setDataObjectAttribute(DataObjectAttribute dataObjectAttribute) |
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 |
setLabel(String label)
The label element is the field or collection name that will be shown on
inquiry and maintenance screens.
|
void |
setName(String name)
Name of the attribute
|
void |
setRequired(Boolean required)
Sets if this attribute is required
|
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 |
setSimpleConstraint(SimpleConstraint simpleConstraint)
Sets the SimpleConstraint which contains settings for required, min, max, minLength, and maxLength.
|
void |
setSummary(String summary)
The summary element is used to provide a short description of the
attribute or collection.
|
completeValidation, completeValidation, getId, hasEmbeddedDataObjectMetadata, setEmbeddedDataObjectMetadata, setGeneratedFromMetadata, setId, wasGeneratedFromMetadata
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode
protected String shortLabel
protected String displayLabelAttribute
protected String constraintText
protected String description
protected SimpleConstraint simpleConstraint
protected DataObjectAttribute dataObjectAttribute
public AttributeDefinitionBase()
public String getName()
getName
in interface Constrainable
public String getLabel()
public void setLabel(String label)
public String getShortLabel()
protected String getDirectShortLabel()
public void setShortLabel(String shortLabel)
public String getConstraintText()
For 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
public void setConstraintText(String constraintText)
constraintText
- public String getSummary()
public void setSummary(String summary)
public String getDescription()
public void setDescription(String description)
public String getDisplayLabelAttribute()
public void setDisplayLabelAttribute(String displayLabelAttribute)
public SimpleConstraint getSimpleConstraint()
getSimpleConstraint
in interface SimpleConstrainable
public void setSimpleConstraint(SimpleConstraint simpleConstraint)
simpleConstraint
- public void setRequired(Boolean required)
required
- true when required, false otherwisepublic Boolean isRequired()
isRequired
in interface ExistenceConstraint
public DataObjectAttribute getDataObjectAttribute()
public void setDataObjectAttribute(DataObjectAttribute dataObjectAttribute)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.