Class ValueDescriptors
java.lang.Object
de.xima.fc.workflow.processor.value.ValueDescriptors
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
isValueConfigurable
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
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.
-