public interface DataObjectAttribute extends MetadataCommon
Represents attribute metadata (persistent or non-persistent) for a data object.
Modifier and Type | Method and Description |
---|---|
DataType |
getDataType()
Gets the derived krad data type.
|
String |
getDisplayAttributeName()
Gets the display attribute name.
|
Set<UifDisplayHint> |
getDisplayHints()
BETA: Gets the display hints.
|
String |
getInheritedFromAttributeName()
Gets inherited attribute name.
|
String |
getInheritedFromParentAttributeName()
Gets inherited parent attribute name.
|
Class<?> |
getInheritedFromType()
Gets class type object is inherited from.
|
Long |
getMaxLength()
Gets the maximum length.
|
Long |
getMinLength()
Gets the minimum length.
|
DataObjectAttribute |
getOriginalDataObjectAttribute()
Gets original data object.
|
Class<?> |
getOwningType()
Gets the data object type
|
PropertyEditor |
getPropertyEditor()
Gets the property editor.
|
String |
getValidCharactersConstraintBeanName()
BETA: Gets the bean name.
|
KeyValuesFinder |
getValidValues()
Gets the values if a drop-down.
|
boolean |
isCaseInsensitive()
Determines if attribute is case insensitive.
|
boolean |
isForceUppercase()
Determines if attribute should be forced to upper case.
|
boolean |
isInherited()
Determines whether attribute is inherited.
|
boolean |
isPersisted()
Determines whether data object is persistent.
|
boolean |
isRequired()
Determines if attribute is required.
|
boolean |
isSensitive()
Determines attribute case insensitivity.
|
getBackingObjectName, getDescription, getLabel, getMergeAction, getName, getShortLabel, isReadOnly
Class<?> getOwningType()
Gets the data object type to which this attribute belongs.
String getDisplayAttributeName()
To be used on attributes which have an associated business key that is shown to users rather than the "internal" key which is likely a meaningless (to the users) sequence number.
Long getMaxLength()
The maximum length value which will be accepted into this field.
Long getMinLength()
The minimum length value which will be accepted into this field.
boolean isCaseInsensitive()
Whether this attribute should be treated as case insensitive when performing lookups and searches.
boolean isForceUppercase()
Whether this attribute should be forced to upper case before being sent to the PersistenceProvider
.
boolean isRequired()
Whether (at the data level) this attribute must have a non-null value.
@Beta String getValidCharactersConstraintBeanName()
The bean name (in the UIF data dictionary), which checks the entered value's characters for correctness.
PropertyEditor getPropertyEditor()
To be used by the persistence layer when loading and persisting the data. (E.g., strip extra characters from phone numbers to leave only the digits for storage in the database.).
boolean isSensitive()
Whether this attribute is protected at the persistence level and should be protected by default when included on user interfaces.
KeyValuesFinder getValidValues()
If this field should be rendered using a drop-down list, specify the instance on this property.
DataType getDataType()
The derived krad-data data type used by the UIF to help generate the appropriate control and perform default validation.
boolean isPersisted()
Whether or not this attribute of the data object is saved to persistent storage when saved via the
DataObjectService
.
Class<?> getInheritedFromType()
If this attribute is inherited from a different data object, that object's type. Otherwise null.
String getInheritedFromAttributeName()
If this attribute is inherited from a different data object, the source attribute name. Otherwise null.
String getInheritedFromParentAttributeName()
If this attribute is inherited from a different data object, the attribute name on the parent object. Otherwise null.
boolean isInherited()
Whether this attribute is inherited from a different data object.
DataObjectAttribute getOriginalDataObjectAttribute()
Obtains the "original" data object attribute in a chain of embedded attribute definitions.
@Beta Set<UifDisplayHint> getDisplayHints()
Returns a set of display hints which can be used by the UIF layer when displaying these fields.
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.