Class ListPropertyBuilder<E>
- java.lang.Object
-
- io.github.mmm.property.builder.PropertyBuilder<List<E>,ListProperty<E>,ValidatorBuilderList<E,ListPropertyBuilder<E>>,ListPropertyBuilder<E>>
-
- io.github.mmm.property.builder.container.ListPropertyBuilder<E>
-
- Type Parameters:
E
- the generic type of theelements contained
in theList
.
public class ListPropertyBuilder<E> extends PropertyBuilder<List<E>,ListProperty<E>,ValidatorBuilderList<E,ListPropertyBuilder<E>>,ListPropertyBuilder<E>>
- Since:
- 1.0.0
- See Also:
PropertyBuilder.asList()
-
-
Field Summary
-
Fields inherited from class io.github.mmm.property.builder.PropertyBuilder
expression, value
-
-
Constructor Summary
Constructors Constructor Description ListPropertyBuilder()
The constructor.ListPropertyBuilder(Property<E> valueProperty)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ListProperty<E>
build(String name, PropertyMetadata<List<E>> metadata)
protected ValidatorBuilderList<E,ListPropertyBuilder<E>>
createValidatorBuilder()
ListPropertyBuilder<E>
valueProperty(Property<E> property)
-
Methods inherited from class io.github.mmm.property.builder.PropertyBuilder
asList, asMap, asMap, asSet, build, build, builder, factory, metadata, metadataFactory, registry, self, value, valueExpression, withValidator
-
-
-
-
Constructor Detail
-
ListPropertyBuilder
public ListPropertyBuilder()
The constructor.
-
ListPropertyBuilder
public ListPropertyBuilder(Property<E> valueProperty)
The constructor.- Parameters:
valueProperty
- thevalue property
.
-
-
Method Detail
-
valueProperty
public ListPropertyBuilder<E> valueProperty(Property<E> property)
- Parameters:
property
- thevalue property
.- Returns:
- this builder itself (
this
) for fluent API calls.
-
createValidatorBuilder
protected ValidatorBuilderList<E,ListPropertyBuilder<E>> createValidatorBuilder()
- Specified by:
createValidatorBuilder
in classPropertyBuilder<List<E>,ListProperty<E>,ValidatorBuilderList<E,ListPropertyBuilder<E>>,ListPropertyBuilder<E>>
- Returns:
- the
ObjectValidatorBuilder
corresponding to this type of builder.
-
build
protected ListProperty<E> build(String name, PropertyMetadata<List<E>> metadata)
- Specified by:
build
in classPropertyBuilder<List<E>,ListProperty<E>,ValidatorBuilderList<E,ListPropertyBuilder<E>>,ListPropertyBuilder<E>>
- Parameters:
name
- theproperty name
of theProperty
to build.metadata
- thePropertyMetadata
.- Returns:
- the
Property
tobuild
.
-
-