Package net.officefloor.gef.configurer
Interface Builder<M,V,B extends Builder<M,V,B>>
-
- All Known Subinterfaces:
ChoiceBuilder<M>
,ClassBuilder<M>
,FlagBuilder<M>
,ListBuilder<M,I>
,MappingBuilder<M>
,MultipleBuilder<M,I>
,OptionalBuilder<M>
,PropertiesBuilder<M>
,ResourceBuilder<M>
,SelectBuilder<M,I>
,TextBuilder<M>
- All Known Implementing Classes:
AbstractBuilder
,ChoiceBuilderImpl
,ClassBuilderImpl
,FlagBuilderImpl
,ListBuilderImpl
,MappingBuilderImpl
,MultipleBuilderImpl
,OptionalBuilderImpl
,PropertiesBuilderImpl
,ResourceBuilderImpl
,SelectBuilderImpl
,TextBuilderImpl
public interface Builder<M,V,B extends Builder<M,V,B>>
Generic builder.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description B
init(java.util.function.Function<M,V> getInitialValue)
Configures obtaining the initial value.B
setValue(ValueLoader<M,V> valueLoader)
Specifies theValueLoader
to load the value to the model.B
validate(ValueValidator<M,V> validator)
Validates the text value.
-
-
-
Method Detail
-
init
B init(java.util.function.Function<M,V> getInitialValue)
Configures obtaining the initial value.- Parameters:
getInitialValue
- Obtains the initial value.- Returns:
this
.
-
validate
B validate(ValueValidator<M,V> validator)
Validates the text value.- Parameters:
validator
-ValueValidator
.- Returns:
this
.
-
setValue
B setValue(ValueLoader<M,V> valueLoader)
Specifies theValueLoader
to load the value to the model.- Parameters:
valueLoader
-ValueLoader
to load the value to the model.- Returns:
this
.
-
-