Class DslEntityBuilder
- java.lang.Object
-
- io.vertigo.studio.impl.source.dsl.entity.DslEntityBuilder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DslEntityBuilderaddManyFields(String fieldName, DslEntity entity)Adds a new multi field defined by an entity.DslEntityBuilderaddManyFields(String fieldName, DslEntityLink entityLink)Adds a new multi field defined by an entity.DslEntityBuilderaddOptionalField(String fieldName, DslEntityFieldType type)Adds a new simple OPTIONAL field.DslEntityBuilderaddRequiredField(String fieldName, DslEntityFieldType type)Adds a new simple REQUIRED field.DslEntitybuild()DslEntityBuilderwithProvided()Set this entity as core and managed specificaly.
-
-
-
Method Detail
-
withProvided
public DslEntityBuilder withProvided()
Set this entity as core and managed specificaly.- Returns:
- this builder
-
addRequiredField
public DslEntityBuilder addRequiredField(String fieldName, DslEntityFieldType type)
Adds a new simple REQUIRED field.- Parameters:
fieldName- the name of the fieldtype- the type of the field- Returns:
- this builder
-
addOptionalField
public DslEntityBuilder addOptionalField(String fieldName, DslEntityFieldType type)
Adds a new simple OPTIONAL field.- Parameters:
fieldName- the name of the fieldtype- the type of the field- Returns:
- this builder
-
addManyFields
public DslEntityBuilder addManyFields(String fieldName, DslEntity entity)
Adds a new multi field defined by an entity.- Parameters:
fieldName- the name of the fieldentity- Type of the field- Returns:
- this builder
-
addManyFields
public DslEntityBuilder addManyFields(String fieldName, DslEntityLink entityLink)
Adds a new multi field defined by an entity.- Parameters:
fieldName- the name of the fieldentityLink- Type of the field- Returns:
- this builder
-
-