Class DslEntity
- java.lang.Object
-
- io.vertigo.studio.impl.source.dsl.entity.DslEntity
-
- All Implemented Interfaces:
DslEntityFieldType
public final class DslEntity extends Object implements 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DslEntityBuilder
builder(String name)
Static method factory for TaskBuilderDslEntityField
getField(String fieldName)
Returns the value to which the specified name is mapped.Collection<DslEntityField>
getFields()
DslEntityLink
getLink()
String
getName()
Set<String>
getPropertyNames()
DslPropertyType
getPropertyType(String fieldName)
boolean
isEntity()
boolean
isProvided()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.vertigo.studio.impl.source.dsl.entity.DslEntityFieldType
isEntityLink, isProperty
-
-
-
-
Method Detail
-
builder
public static DslEntityBuilder builder(String name)
Static method factory for TaskBuilder- Parameters:
name
- the name of the entity- Returns:
- TaskBuilder
-
getName
public String getName()
- Returns:
- Nom de l'entité (Type de la définition).
-
getPropertyNames
public Set<String> getPropertyNames()
- Returns:
- Ensemble de toutes les propriétés gérées (obligatoires ou non).
-
getPropertyType
public DslPropertyType getPropertyType(String fieldName)
- Parameters:
fieldName
- Name of the field- Returns:
- Property type
-
getField
public DslEntityField getField(String fieldName)
Returns the value to which the specified name is mapped.- Parameters:
fieldName
- Name of the field- Returns:
- Field
-
getFields
public Collection<DslEntityField> getFields()
- Returns:
- List of the entity's fields
-
getLink
public DslEntityLink getLink()
-
isProvided
public boolean isProvided()
- Returns:
- if this entity is identified as core and managed specificaly.
-
isEntity
public boolean isEntity()
- Specified by:
isEntity
in interfaceDslEntityFieldType
- Returns:
- If the field is a child entity
-
-