Interface IAnyValueDescriptorBuilder
- All Superinterfaces:
org.apache.commons.lang3.builder.Builder<IAnyValueDescriptor>, IValueDescriptorBuilder<Object, IAnyValueBuilder, IAnyValueDescriptor>
public interface IAnyValueDescriptorBuilder
extends IValueDescriptorBuilder<Object, IAnyValueBuilder, IAnyValueDescriptor>
A
IValueDescriptorBuilder for creating a value descriptor of any type.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionaddAttribute(String key, Object value) Adds a custom attribute to the value descriptor.addAttributes(Map<String, Object> attributes) Adds custom attributes to the value descriptor.attributes(Map<String, Object> attributes) Set the custom attributes for the value descriptor.defaultValue(Object defaultValue) Sets the default value used when no value is provided.description(String description) Deprecated.Methods inherited from interface org.apache.commons.lang3.builder.Builder
build
-
Method Details
-
addAttribute
Description copied from interface:IValueDescriptorBuilderAdds a custom attribute to the value descriptor. This can be used to store additional metadata about the value that is not covered by the standard properties of the descriptor. The exact meaning of the attributes depends on the context in which the descriptor is used.See
StandardValueDescriptorAttributesfor some standard attribute keys and values you can use.- Specified by:
addAttributein interfaceIValueDescriptorBuilder<Object, IAnyValueBuilder, IAnyValueDescriptor>- Parameters:
key- The attribute key.value- The attribute value.- Returns:
- This builder instance for chaining method calls.
- See Also:
-
addAttributes
Description copied from interface:IValueDescriptorBuilderAdds custom attributes to the value descriptor. These can be used to store additional metadata about the value that is not covered by the standard properties of the descriptor. The exact meaning of the attributes depends on the context in which the descriptor is used.See
StandardValueDescriptorAttributesfor some standard attribute keys and values you can use.- Specified by:
addAttributesin interfaceIValueDescriptorBuilder<Object, IAnyValueBuilder, IAnyValueDescriptor>- Returns:
- This builder instance for chaining method calls.
- See Also:
-
attributes
Description copied from interface:IValueDescriptorBuilderSet the custom attributes for the value descriptor. These can be used to store additional metadata about the value that is not covered by the standard properties of the descriptor. The exact meaning of the attributes depends on the context in which the descriptor is used.See
StandardValueDescriptorAttributesfor some standard attribute keys and values you can use.- Specified by:
attributesin interfaceIValueDescriptorBuilder<Object, IAnyValueBuilder, IAnyValueDescriptor>- Returns:
- This builder instance for chaining method calls.
- See Also:
-
defaultValue
Sets the default value used when no value is provided. The default value isnullwhen no explicit default is provided.- Parameters:
defaultValue- Value to use as the default when creating a value of any type.- Returns:
- This descriptor builder for chaining method calls.
-
description
Deprecated.Description copied from interface:IValueDescriptorBuilderSets the description for the value. This description can be used in UIs to provide additional information about the value to users. It can be either a localized message or an I18N key that will be resolved at runtime.- Specified by:
descriptionin interfaceIValueDescriptorBuilder<Object, IAnyValueBuilder, IAnyValueDescriptor>- Parameters:
description- The description for the value.- Returns:
- This builder instance for chaining method calls.
-