Interface IRecordValueBuilder
- 
- All Superinterfaces:
 org.apache.commons.lang3.builder.Builder<Map<String,?>>,ISubTypeValueBuilder<Map<String,?>,IRecordValueBuilder>,IValueBuilder<Map<String,?>>,IValueConfigurator
public interface IRecordValueBuilder extends ISubTypeValueBuilder<Map<String,?>,IRecordValueBuilder>
AIValueBuilderfor aMapthat adheres to a givenIRecordValueDescriptor. When no value is given for a property of the record, the default value is used instead. When a property name is given that does not exist on the record, it is ignored.- Since:
 - 7.0.0
 - Author:
 - XIMA MEDIA GmbH
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default IRecordValueBuilderasThis()IRecordValueBuilderproperty(String key, IValueCreator creator)Supplies a value for the given property name.default IRecordValueBuilderproperty(String key, Class<?> memberClass, IValueCreator creator)Deprecated.default IRecordValueBuilderproperty(String key, Object value)Supplies a value for the given property name.default IRecordValueBuildervalue(Object value)Applies the given value to this builder.- 
Methods inherited from interface de.xima.fc.interfaces.workflow.value.ISubTypeValueBuilder
whenBoolean, whenConst, whenFloat, whenInteger, whenList, whenMap, whenNull, whenRecord, whenString, whenTuple, whenUnion, whenVoid 
 - 
 
 - 
 
- 
- 
Method Detail
- 
asThis
default IRecordValueBuilder asThis()
- Specified by:
 asThisin interfaceISubTypeValueBuilder<Map<String,?>,IRecordValueBuilder>- Returns:
 - This instance.
 
 
- 
property
@Deprecated default IRecordValueBuilder property(String key, Class<?> memberClass, IValueCreator creator)
Deprecated.Supplies a value for the given property name. When the record does not have that property, the value is ignored.- Parameters:
 key- Name of the property.memberClass- Type of the property value.creator- A value creator that is given aIValueBuilderand must return the value for the property.- Returns:
 - This builder for chaining method calls.
 
 
- 
property
IRecordValueBuilder property(String key, IValueCreator creator)
Supplies a value for the given property name. When the record does not have that property, the value is ignored.- Parameters:
 key- Name of the property.creator- A value creator that is given aIValueBuilderand must return the value for the property.- Returns:
 - This builder for chaining method calls.
 
 
- 
property
default IRecordValueBuilder property(String key, Object value)
Supplies a value for the given property name. When the record does not have that property, the value is ignored.- Parameters:
 key- Name of the property.value- The value for the property. Must be an instance ofT.- Returns:
 - This builder for chaining method calls.
 
 
- 
value
default IRecordValueBuilder value(Object value)
Description copied from interface:IValueConfiguratorApplies the given value to this builder. Implementations are allowed to perform validity checks on the passed value and reject the given value or parts of it (in case of lists etc.) when they do not conform to the restrictions imposed by this builder.- Specified by:
 valuein interfaceISubTypeValueBuilder<Map<String,?>,IRecordValueBuilder>- Specified by:
 valuein interfaceIValueBuilder<Map<String,?>>- Specified by:
 valuein interfaceIValueConfigurator- Parameters:
 value- Sets the value created by this builder.- Returns:
 - getThis() builder instance for chaining method calls.
 
 
 - 
 
 -