- java.lang.Object
-
- io.github.mmm.bean.PropertyBuilders
-
- All Implemented Interfaces:
DefaultPropertyBuilders
,PropertyMetadataFactory
,Consumer<WritableProperty<?>>
public class PropertyBuilders extends Object implements DefaultPropertyBuilders, Consumer<WritableProperty<?>>, PropertyMetadataFactory
Implementation ofDefaultPropertyBuilders
that auto registers build properties and redirects to read-only properties ifread-only
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PropertyBuilders(AbstractBean bean)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(WritableProperty<?> property)
<V> PropertyMetadata<V>
create(Validator<? super V> validator, Supplier<? extends V> expression, Type valueType, Map<String,Object> map)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.mmm.property.builder.DefaultPropertyBuilders
newBigDecimal, newBigDecimal, newBigInteger, newBigInteger, newBoolean, newBoolean, newByte, newByte, newDouble, newDouble, newFloat, newFloat, newInstant, newInstant, newInteger, newInteger, newLocalDate, newLocalDate, newLocalDateTime, newLocalDateTime, newLocalTime, newLocalTime, newLong, newLong, newOffsetDateTime, newOffsetDateTime, newOffsetTime, newOffsetTime, newShort, newShort, newString, newString, newZonedDateTime, newZonedDateTime
-
Methods inherited from interface io.github.mmm.property.PropertyMetadataFactory
create
-
-
-
-
Constructor Detail
-
PropertyBuilders
protected PropertyBuilders(AbstractBean bean)
The constructor.- Parameters:
bean
-AbstractBean
to build theproperties
for.
-
-
Method Detail
-
accept
public void accept(WritableProperty<?> property)
- Specified by:
accept
in interfaceConsumer<WritableProperty<?>>
-
create
public <V> PropertyMetadata<V> create(Validator<? super V> validator, Supplier<? extends V> expression, Type valueType, Map<String,Object> map)
- Specified by:
create
in interfacePropertyMetadataFactory
- Type Parameters:
V
- type of theproperty value
.- Parameters:
validator
- thevalidator
.expression
- theexpression
.valueType
- thevalue type
.map
- themetadata
Map
.- Returns:
- the new
PropertyMetadata
.
-
-