Class SmartTypeDefinitionBuilder
- java.lang.Object
-
- io.vertigo.datamodel.smarttype.definitions.SmartTypeDefinitionBuilder
-
- All Implemented Interfaces:
io.vertigo.core.lang.Builder<SmartTypeDefinition>
public final class SmartTypeDefinitionBuilder extends Object implements io.vertigo.core.lang.Builder<SmartTypeDefinition>
This class must be used to build a Domain.- Author:
- pchretien
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SmartTypeDefinitionBuilder
addAdapter(String type, Class<? extends io.vertigo.core.lang.BasicTypeAdapter> adapterClass, io.vertigo.core.lang.BasicType targetDataType)
SmartTypeDefinition
build()
SmartTypeDefinitionBuilder
withConstraints(List<ConstraintConfig> constraintConfigs)
SmartTypeDefinitionBuilder
withFormatter(FormatterConfig formatterConfig)
SmartTypeDefinitionBuilder
withProperties(Properties properties)
SmartTypeDefinitionBuilder
withScope(SmartTypeDefinition.Scope scope)
-
-
-
Method Detail
-
withScope
public SmartTypeDefinitionBuilder withScope(SmartTypeDefinition.Scope scope)
- Parameters:
formatterDefinition
- the FormatterDefinition- Returns:
- this builder
-
withFormatter
public SmartTypeDefinitionBuilder withFormatter(FormatterConfig formatterConfig)
- Parameters:
formatterDefinition
- the FormatterDefinition- Returns:
- this builder
-
withConstraints
public SmartTypeDefinitionBuilder withConstraints(List<ConstraintConfig> constraintConfigs)
- Parameters:
constraintDefinitions
- the list of constraintDefinitions- Returns:
- this builder
-
withProperties
public SmartTypeDefinitionBuilder withProperties(Properties properties)
- Parameters:
properties
- the properties- Returns:
- this builder
-
addAdapter
public SmartTypeDefinitionBuilder addAdapter(String type, Class<? extends io.vertigo.core.lang.BasicTypeAdapter> adapterClass, io.vertigo.core.lang.BasicType targetDataType)
- Parameters:
properties
- the properties- Returns:
- this builder
-
build
public SmartTypeDefinition build()
- Specified by:
build
in interfaceio.vertigo.core.lang.Builder<SmartTypeDefinition>
-
-