Package com.opencloud.rem.common.form
Class FieldValueProvider
- java.lang.Object
-
- com.opencloud.rem.common.form.FieldValueProvider
-
- All Implemented Interfaces:
Serializable
public class FieldValueProvider extends Object implements Serializable
Represents a provider of values for a form field.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FieldValueProvider.Context
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldValueProvider.Context
getContext()
Gets the context to use for calculating or fetching dynamic field values.Map<String,String>
getValues()
Gets the provided values for this field.boolean
isDynamic()
Gets whether or not the field values are dynamic (calculated or fetched at form load time).boolean
isRestrictive()
Gets whether or not the field is restricted to the provided values, or if they are only suggestions.String
toString()
-
-
-
Method Detail
-
getValues
public Map<String,String> getValues()
Gets the provided values for this field.- Returns:
- an unmodifiable map of values, keyed by their name - may be
empty, but never
null
-
isRestrictive
public boolean isRestrictive()
Gets whether or not the field is restricted to the provided values, or if they are only suggestions.- Returns:
true
if the field is restricted to the provided values
-
isDynamic
public boolean isDynamic()
Gets whether or not the field values are dynamic (calculated or fetched at form load time).- Returns:
true
if the field values are dynamic
-
getContext
public FieldValueProvider.Context getContext()
Gets the context to use for calculating or fetching dynamic field values.- Returns:
- the context for this field value provider
-
-