Class DataField
java.lang.Object
io.vertigo.datamodel.data.definitions.DataDescriptor
io.vertigo.datamodel.data.definitions.DataField
This class defines the structure of a field.
A field represents a named and typed data
A field
- is a dataDesciptor with
- a name,
- a smartType
- a cardinality
- has a fieldType
- has a label
- can be persistent
- Author:
- fconstantin, pchretien , npiedeloup
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThis enum lists all types that can be used by a field. -
Field Summary
Fields -
Method Summary
Methods inherited from class io.vertigo.datamodel.data.definitions.DataDescriptor
cardinality, checkType, getTargetJavaClass, name, smartTypeDefinition, validate
-
Field Details
-
PREFIX
Field definition Prefix.- See Also:
-
-
Method Details
-
getResourceKey
- Returns:
- the key of the resource (i18n)
-
getType
- Returns:
- the type of the field
-
getLabel
public io.vertigo.core.locale.LocaleMessageText getLabel()- Returns:
- the label of the field
-
isPersistent
public boolean isPersistent()Gestion de la persistance.- Returns:
- Si le champ est persisté.
-
isDtList
public boolean isDtList() -
getFkDtDefinition
- Returns:
- DtDefinition de la ForeignKey (caractère obligatoire lié au type)
-
getDataAccessor
Returns the way to access the data.- Returns:
- the data accessor.
-