Class DslEntityBuilder
java.lang.Object
io.vertigo.studio.impl.source.dsl.entity.DslEntityBuilder
- All Implemented Interfaces:
io.vertigo.core.lang.Builder<DslEntity>
public final class DslEntityBuilder
extends Object
implements io.vertigo.core.lang.Builder<DslEntity>
This class provides a common way to build an entity.
- Author:
- pchretien, mlaroche
-
Method Summary
Modifier and TypeMethodDescriptionaddManyFields(String fieldName, DslEntity entity) Adds a new multi field defined by an entity.addManyFields(String fieldName, DslEntityLink entityLink) Adds a new multi field defined by an entity.addOptionalField(String fieldName, DslEntityFieldType type) Adds a new simple OPTIONAL field.addRequiredField(String fieldName, DslEntityFieldType type) Adds a new simple REQUIRED field.build()Set this entity as core and managed specificaly.
-
Method Details
-
withProvided
Set this entity as core and managed specificaly.- Returns:
- this builder
-
addRequiredField
Adds a new simple REQUIRED field.- Parameters:
fieldName- the name of the fieldtype- the type of the field- Returns:
- this builder
-
addOptionalField
Adds a new simple OPTIONAL field.- Parameters:
fieldName- the name of the fieldtype- the type of the field- Returns:
- this builder
-
addManyFields
Adds a new multi field defined by an entity.- Parameters:
fieldName- the name of the fieldentity- Type of the field- Returns:
- this builder
-
addManyFields
Adds a new multi field defined by an entity.- Parameters:
fieldName- the name of the fieldentityLink- Type of the field- Returns:
- this builder
-
build
- Specified by:
buildin interfaceio.vertigo.core.lang.Builder<DslEntity>
-