Class DtSketchField
- java.lang.Object
-
- io.vertigo.studio.notebook.domain.DtSketchField
-
public final class DtSketchField 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DtSketchField.FieldType
This enum lists all types that can be used by a field.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.vertigo.core.lang.Cardinality
getCardinality()
ComputedExpression
getComputedExpression()
Expression dans le cas d'un champ calculé.DomainSketch
getDomain()
String
getFkDtSketchName()
io.vertigo.core.locale.MessageText
getLabel()
String
getName()
String
getResourceKey()
DtSketchField.FieldType
getType()
boolean
isPersistent()
Gestion de la persistance.
-
-
-
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)
-
getType
public DtSketchField.FieldType getType()
- Returns:
- the type of the field
-
getDomain
public DomainSketch getDomain()
- Returns:
- the domain 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é.
-
getFkDtSketchName
public String getFkDtSketchName()
- Returns:
- DtSketch de la ForeignKey (caractère obligatoire lié au type)
-
getComputedExpression
public ComputedExpression getComputedExpression()
Expression dans le cas d'un champ calculé.- Returns:
- ComputedExpression du champs calculé (caractère obligatoire lié au type)
-
-