Interface IConstValueDescriptorBuilder<V>
-
- Type Parameters:
V- Type of the constant value.
- All Superinterfaces:
org.apache.commons.lang3.builder.Builder<IConstValueDescriptor<V>>,IValueDescriptorBuilder<V,IConstValueBuilder<V>,IConstValueDescriptor<V>>
public interface IConstValueDescriptorBuilder<V> extends IValueDescriptorBuilder<V,IConstValueBuilder<V>,IConstValueDescriptor<V>>
AIValueDescriptorBuilderfor creating a constant value descriptor.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description IConstValueDescriptorBuilder<V>addAttribute(String key, Object value)Adds a custom attribute to the value descriptor.IConstValueDescriptorBuilder<V>addAttributes(Map<String,Object> attributes)Adds custom attributes to the value descriptor.IConstValueDescriptorBuilder<V>attributes(Map<String,Object> attributes)Set the custom attributes for the value descriptor.IConstValueDescriptorBuilder<V>description(String description)Deprecated.IConstValueDescriptorBuilder<V>value(V value)
-
-
-
Method Detail
-
addAttribute
@CanIgnoreReturnValue IConstValueDescriptorBuilder<V> addAttribute(String key, Object value)
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<V,IConstValueBuilder<V>,IConstValueDescriptor<V>>- Parameters:
key- The attribute key.value- The attribute value.- Returns:
- This builder instance for chaining method calls.
- See Also:
StandardValueDescriptorAttributes
-
addAttributes
@CanIgnoreReturnValue IConstValueDescriptorBuilder<V> addAttributes(Map<String,Object> attributes)
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<V,IConstValueBuilder<V>,IConstValueDescriptor<V>>- Returns:
- This builder instance for chaining method calls.
- See Also:
StandardValueDescriptorAttributes
-
attributes
@CanIgnoreReturnValue IConstValueDescriptorBuilder<V> attributes(Map<String,Object> 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<V,IConstValueBuilder<V>,IConstValueDescriptor<V>>- Returns:
- This builder instance for chaining method calls.
- See Also:
StandardValueDescriptorAttributes
-
description
@CanIgnoreReturnValue @Deprecated IConstValueDescriptorBuilder<V> description(String 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<V,IConstValueBuilder<V>,IConstValueDescriptor<V>>- Parameters:
description- The description for the value.- Returns:
- This builder instance for chaining method calls.
-
value
@CanIgnoreReturnValue IConstValueDescriptorBuilder<V> value(V value)
- Parameters:
value- The constant value to which the value described by the descriptor must be equal to.- Returns:
- This value descriptor builder for chaining method calls.
-
-