Interface IListValueDescriptor<V>
-
- Type Parameters:
V- Type of the list elements.
- All Superinterfaces:
IAttributeConfigurable<IValueDescriptor<List<V>,IListValueBuilder<V>>>,IValueDescriptor<List<V>,IListValueBuilder<V>>,Serializable
public interface IListValueDescriptor<V> extends IValueDescriptor<List<V>,IListValueBuilder<V>>
AIValueDescriptorfor a list value. The value must be a list of elements. Optionally, the length of the list can be restricted.- 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 IListValueDescriptorBuilder<V>configure()Creates a new builder pre-configured with the settings of this descriptor.default EValueTypegetBaseType()Gets the basic type of the value described by this value descriptor.IValueDescriptor<V,? extends IValueBuilder<V>>getItemValueDescriptor()default Class<List<V>>getJavaClass()Gets the Java class of the values described by this descriptor.com.google.common.collect.Range<Integer>getLength()IListValueDescriptor<V>withAddedAttribute(String key, Object value)Gets a new instance with the attribute at the given key changed to the given value.IListValueDescriptor<V>withAddedAttributes(Map<String,Object> newAttributes)Gets a new instance with the attributes changed to the given map of attributes.IListValueDescriptor<V>withAttributes(Map<String,Object> attributes)Gets a new instance with the attributes changed to the given map of attributes.IListValueDescriptor<V>withDefaultValue(Object defaultValue)Gets a new value descriptor with the default value changed to the given value.IListValueDescriptor<V>withDescription(String description)Deprecated.-
Methods inherited from interface de.xima.fc.interfaces.workflow.value.IAttributeConfigurable
getAttribute, getAttribute, getBooleanAttribute, getBooleanAttribute, getFloatAttribute, getFloatAttribute, getIntegerAttribute, getIntegerAttribute, getStringAttribute, getStringAttribute
-
Methods inherited from interface de.xima.fc.interfaces.workflow.value.IValueDescriptor
acceptsValue, acceptsValue, asAny, asBoolean, asConst, asFloat, asInteger, asLargeString, asList, asList, asMap, asMap, asNull, asRecord, asString, asTuple, asUnion, asUnion, asVoid, builder, builder, getAttributes, getDefaultValue, getDescription, getFullType, getFullTypeWithRestrictions, getKnownProperties, getKnownProperties, intersect, is, match, unwrap
-
-
-
-
Method Detail
-
configure
IListValueDescriptorBuilder<V> configure()
Description copied from interface:IValueDescriptorCreates a new builder pre-configured with the settings of this descriptor. Lets you e.g. add additional properties.- Specified by:
configurein interfaceIValueDescriptor<List<V>,IListValueBuilder<V>>- Returns:
- A new builder pre-configured with the settings of this descriptor.
-
getBaseType
default EValueType getBaseType()
Description copied from interface:IValueDescriptorGets the basic type of the value described by this value descriptor.- Specified by:
getBaseTypein interfaceIValueDescriptor<List<V>,IListValueBuilder<V>>- Returns:
- The value's basic type.
-
getItemValueDescriptor
IValueDescriptor<V,? extends IValueBuilder<V>> getItemValueDescriptor()
- Returns:
- The value descriptor for the list elements. Each list element must conform to this descriptor.
-
getJavaClass
default Class<List<V>> getJavaClass()
Description copied from interface:IValueDescriptorGets the Java class of the values described by this descriptor.- Specified by:
getJavaClassin interfaceIValueDescriptor<List<V>,IListValueBuilder<V>>- Returns:
- The value's Java class.
-
getLength
com.google.common.collect.Range<Integer> getLength()
- Returns:
- The range allowed for the length of the list.
-
withAddedAttribute
IListValueDescriptor<V> withAddedAttribute(String key, Object value)
Description copied from interface:IAttributeConfigurableGets a new instance with the attribute at the given key changed to the given value.- Specified by:
withAddedAttributein interfaceIAttributeConfigurable<V>- Parameters:
key- The attribute key.value- The attribute value.- Returns:
- A new instance with the new attribute.
-
withAddedAttributes
IListValueDescriptor<V> withAddedAttributes(Map<String,Object> newAttributes)
Description copied from interface:IAttributeConfigurableGets a new instance with the attributes changed to the given map of attributes. Preserves other existing attributes and only adds or replaces the given ones.- Specified by:
withAddedAttributesin interfaceIAttributeConfigurable<V>- Parameters:
newAttributes- The new attributes to add (or replace).- Returns:
- A new instance with the current attributes plus the given attributes.
-
withAttributes
IListValueDescriptor<V> withAttributes(Map<String,Object> attributes)
Description copied from interface:IAttributeConfigurableGets a new instance with the attributes changed to the given map of attributes. Replaces all existing attributes.- Specified by:
withAttributesin interfaceIAttributeConfigurable<V>- Parameters:
attributes- The new attributes.- Returns:
- A new instance with the given attributes.
-
withDefaultValue
IListValueDescriptor<V> withDefaultValue(Object defaultValue)
Description copied from interface:IValueDescriptorGets a new value descriptor with the default value changed to the given value.- Specified by:
withDefaultValuein interfaceIValueDescriptor<List<V>,IListValueBuilder<V>>- Parameters:
defaultValue- The new default value. May be changed when it does not conform to the restrictions imposed by this descriptor.- Returns:
- A new descriptor with the default value.
-
withDescription
@Deprecated IListValueDescriptor<V> withDescription(String description)
Deprecated.Description copied from interface:IValueDescriptorGets a new value descriptor with the description changed to the given description.- Specified by:
withDescriptionin interfaceIValueDescriptor<List<V>,IListValueBuilder<V>>- Parameters:
description- The new description.- Returns:
- A new descriptor with the given description.
-
-