Class DslEntity
java.lang.Object
io.vertigo.studio.impl.source.dsl.entity.DslEntity
- All Implemented Interfaces:
DslEntityFieldType
Une entité permet de décrire un modèle, une classe.
- Elle est définie par son nom.
- Elle possède une liste de propriétés (Chacune étant obligatoire / facultative)
- Elle est composée d'une liste d'attibuts.
Une entité permet, ainsi, d'adopter des comportement dynamique, de fabriquer des grammaires.
Si l'ensemble des définitions permet de construire le modèle, l'ensemble des entités permet de décrire le métamodèle.
- Author:
- pchretien, mlaroche
-
Method Summary
Modifier and TypeMethodDescriptionstatic DslEntityBuilderStatic method factory for TaskBuilderReturns the value to which the specified name is mapped.getLink()getName()getPropertyType(String fieldName) booleanisEntity()booleantoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.vertigo.studio.impl.source.dsl.entity.DslEntityFieldType
isEntityLink, isProperty
-
Method Details
-
builder
Static method factory for TaskBuilder- Parameters:
name- the name of the entity- Returns:
- TaskBuilder
-
getName
- Returns:
- Nom de l'entité (Type de la définition).
-
getPropertyNames
- Returns:
- Ensemble de toutes les propriétés gérées (obligatoires ou non).
-
getPropertyType
- Parameters:
fieldName- Name of the field- Returns:
- Property type
-
getField
Returns the value to which the specified name is mapped.- Parameters:
fieldName- Name of the field- Returns:
- Field
-
getFields
- Returns:
- List of the entity's fields
-
getLink
-
toString
-
isProvided
public boolean isProvided()- Returns:
- if this entity is identified as core and managed specificaly.
-
isEntity
public boolean isEntity()- Specified by:
isEntityin interfaceDslEntityFieldType- Returns:
- If the field is a child entity
-