Interface IVoidValueDescriptor
-
- All Superinterfaces:
IValueDescriptor<Void,IVoidValueBuilder>
,Serializable
public interface IVoidValueDescriptor extends IValueDescriptor<Void,IVoidValueBuilder>
AIValueDescriptor
for a void value. The value must be identical tonull
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default boolean
acceptsValue(Object value)
default EValueType
getBaseType()
default Class<?>
getJavaClass()
default IVoidValueDescriptor
withDefaultValue(Object defaultValue)
default IVoidValueDescriptor
withDescription(String description)
-
Methods inherited from interface de.xima.fc.interfaces.workflow.value.IValueDescriptor
asAny, asBoolean, asConst, asFloat, asInteger, asLargeString, asList, asList, asMap, asMap, asNull, asRecord, asString, asTuple, asUnion, asUnion, asVoid, builder, configure, getDefaultValue, getDescription, getFullType, getKnownProperties, getKnownProperties, intersect, is, unwrap
-
-
-
-
Method Detail
-
acceptsValue
default boolean acceptsValue(Object value)
- Specified by:
acceptsValue
in interfaceIValueDescriptor<Void,IVoidValueBuilder>
- Parameters:
value
- A value to check.- Returns:
true
when the given value conforms to the restrictions imposed by this value descriptor,false
otherwise.
-
getBaseType
default EValueType getBaseType()
- Specified by:
getBaseType
in interfaceIValueDescriptor<Void,IVoidValueBuilder>
- Returns:
- The basic type of value described by this value descriptor.
-
getJavaClass
default Class<?> getJavaClass()
- Specified by:
getJavaClass
in interfaceIValueDescriptor<Void,IVoidValueBuilder>
- Returns:
- The Java class of the values described by this descriptor.
-
withDefaultValue
default IVoidValueDescriptor withDefaultValue(Object defaultValue)
- Specified by:
withDefaultValue
in interfaceIValueDescriptor<Void,IVoidValueBuilder>
- 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
default IVoidValueDescriptor withDescription(String description)
- Specified by:
withDescription
in interfaceIValueDescriptor<Void,IVoidValueBuilder>
- Parameters:
description
- The new description.- Returns:
- A new descriptor with the given description.
-
-