Class MapPropertyBuilder<K,V>
- java.lang.Object
-
- io.github.mmm.property.builder.PropertyBuilder<Map<K,V>,MapProperty<K,V>,io.github.mmm.validation.collection.ValidatorBuilderMap<K,V,MapPropertyBuilder<K,V>>,MapPropertyBuilder<K,V>>
-
- io.github.mmm.property.builder.container.MapPropertyBuilder<K,V>
-
public class MapPropertyBuilder<K,V> extends PropertyBuilder<Map<K,V>,MapProperty<K,V>,io.github.mmm.validation.collection.ValidatorBuilderMap<K,V,MapPropertyBuilder<K,V>>,MapPropertyBuilder<K,V>>
- Since:
- 1.0.0
- See Also:
PropertyBuilder.asMap()
-
-
Field Summary
-
Fields inherited from class io.github.mmm.property.builder.PropertyBuilder
expression, lock, value
-
-
Constructor Summary
Constructors Constructor Description MapPropertyBuilder(AttributeReadOnly lock)
The constructor.MapPropertyBuilder(AttributeReadOnly lock, SimpleProperty<K> keyProperty, Property<V> valueProperty)
The constructor.MapPropertyBuilder(AttributeReadOnly lock, Property<V> valueProperty)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MapProperty<K,V>
build(String name, PropertyMetadata<Map<K,V>> metadata)
protected io.github.mmm.validation.collection.ValidatorBuilderMap<K,V,MapPropertyBuilder<K,V>>
createValidatorBuilder()
MapPropertyBuilder<K,V>
keyProperty(SimpleProperty<K> property)
MapPropertyBuilder<K,V>
valueProperty(Property<V> property)
-
-
-
Constructor Detail
-
MapPropertyBuilder
public MapPropertyBuilder(AttributeReadOnly lock)
The constructor.- Parameters:
lock
- thelock
.
-
MapPropertyBuilder
public MapPropertyBuilder(AttributeReadOnly lock, Property<V> valueProperty)
The constructor.- Parameters:
lock
- thelock
.valueProperty
- thevalue property
.
-
MapPropertyBuilder
public MapPropertyBuilder(AttributeReadOnly lock, SimpleProperty<K> keyProperty, Property<V> valueProperty)
The constructor.- Parameters:
lock
- thelock
.keyProperty
- thekey property
.valueProperty
- thevalue property
.
-
-
Method Detail
-
keyProperty
public MapPropertyBuilder<K,V> keyProperty(SimpleProperty<K> property)
- Parameters:
property
- thekey property
.- Returns:
- this builder itself (
this
) for fluent API calls.
-
valueProperty
public MapPropertyBuilder<K,V> valueProperty(Property<V> property)
- Parameters:
property
- thevalue property
.- Returns:
- this builder itself (
this
) for fluent API calls.
-
createValidatorBuilder
protected io.github.mmm.validation.collection.ValidatorBuilderMap<K,V,MapPropertyBuilder<K,V>> createValidatorBuilder()
- Specified by:
createValidatorBuilder
in classPropertyBuilder<Map<K,V>,MapProperty<K,V>,io.github.mmm.validation.collection.ValidatorBuilderMap<K,V,MapPropertyBuilder<K,V>>,MapPropertyBuilder<K,V>>
- Returns:
- the
ObjectValidatorBuilder
corresponding to this type of builder.
-
build
protected MapProperty<K,V> build(String name, PropertyMetadata<Map<K,V>> metadata)
- Specified by:
build
in classPropertyBuilder<Map<K,V>,MapProperty<K,V>,io.github.mmm.validation.collection.ValidatorBuilderMap<K,V,MapPropertyBuilder<K,V>>,MapPropertyBuilder<K,V>>
- Parameters:
name
- theproperty name
of theProperty
to build.metadata
- thePropertyMetadata
.- Returns:
- the
Property
tobuild
.
-
-