Class ValueDescriptors
- java.lang.Object
-
- de.xima.fc.workflow.processor.value.ValueDescriptors
-
public final class ValueDescriptors extends Object
Operations onvalue descriptors.- Since:
- 8.5.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisValueConfigurable(IValueDescriptor<?,?> descriptor)Checks if the given value descriptor allows configuration to its allowed value, i.e. whetherbuilder().build()can return different values.static booleanisValueUnconfigurable(IValueDescriptor<?,?> descriptor)Checks if the given value descriptor does not allow any configuration to its allowed value, i.e. whetherbuilder().build()will always return the same value.
-
-
-
Method Detail
-
isValueConfigurable
public static boolean isValueConfigurable(IValueDescriptor<?,?> descriptor)
Checks if the given value descriptor allows configuration to its allowed value, i.e. whetherbuilder().build()can return different values. This is the case for all value descriptors exceptvoid,nullandconstantvalue descriptors.- Parameters:
descriptor- The value descriptor to check.- Returns:
- True if the value descriptor is configurable, false otherwise.
-
isValueUnconfigurable
public static boolean isValueUnconfigurable(IValueDescriptor<?,?> descriptor)
Checks if the given value descriptor does not allow any configuration to its allowed value, i.e. whetherbuilder().build()will always return the same value. This is the case forvoid,nullandconstantvalue descriptors.- Parameters:
descriptor- The value descriptor to check.- Returns:
- True if the value descriptor is unconfigurable, false otherwise.
-
-