Class DtField


  • public final class DtField
    extends Object
    This class defines the structure of a field. A field represents a named and typed data A field - has a name - has a domain - has a fieldType - has a label - can be required - can be persistent - can be dynamic
    Author:
    fconstantin, pchretien , npiedeloup
    • Method Detail

      • getResourceKey

        public String getResourceKey()
        Returns:
        the key of the resource (i18n)
      • getName

        public String getName()
        Returns:
        the name of the field
      • getCardinality

        public io.vertigo.core.lang.Cardinality getCardinality()
        Returns:
        the cardinality of the field (one, optional, many)
      • getSmartTypeDefinition

        public SmartTypeDefinition getSmartTypeDefinition()
        Returns:
        the smarttype of the field
      • getLabel

        public io.vertigo.core.locale.MessageText 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

        public DtDefinition getFkDtDefinition()
        Returns:
        DtDefinition de la ForeignKey (caractère obligatoire lié au type)
      • getDataAccessor

        public DataAccessor getDataAccessor()
        Returns the way to access the data.
        Returns:
        the data accessor.
      • getTargetJavaClass

        public Class getTargetJavaClass()
        Returns the class that holds the value of the field. If cardinality is many it's either a list or a dtList, if not then it's the base type of the domain.
        Returns:
        the data accessor.