Class JsonParametersValueAccessor
- java.lang.Object
-
- de.xima.fc.workflow.designer.model.prompt_query.JsonParametersValueAccessor
-
- All Implemented Interfaces:
IValueAccessor<Object>,Serializable
public final class JsonParametersValueAccessor extends Object implements IValueAccessor<Object>
AnIValueAccessorfor the single JSON parameters of aFcPromptQueryProps.- Since:
- 8.5.0
- See Also:
FcPromptQueryProps.getJsonParameters(), Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JsonParametersValueAccessor(FcPromptQueryProps props)Creates a new accessor for the single JSON parameters of the given properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectget()Gets the value.booleanhasValue()Checks if a value is present.voidremoveValue()Removes the value (so thatIValueAccessor.hasValue()returns false).voidset(Object value)Sets the value.
-
-
-
Constructor Detail
-
JsonParametersValueAccessor
public JsonParametersValueAccessor(FcPromptQueryProps props)
Creates a new accessor for the single JSON parameters of the given properties.- Parameters:
props- The properties to access.
-
-
Method Detail
-
get
public Object get()
Description copied from interface:IValueAccessorGets the value. This will return null if no valueis present.- Specified by:
getin interfaceIValueAccessor<Object>- Returns:
- The value
-
hasValue
public boolean hasValue()
Description copied from interface:IValueAccessorChecks if a value is present.- Specified by:
hasValuein interfaceIValueAccessor<Object>- Returns:
- true if a value is present, false otherwise
-
removeValue
public void removeValue()
Description copied from interface:IValueAccessorRemoves the value (so thatIValueAccessor.hasValue()returns false).- Specified by:
removeValuein interfaceIValueAccessor<Object>
-
set
public void set(Object value)
Description copied from interface:IValueAccessorSets the value. This will makeIValueAccessor.hasValue()return true.- Specified by:
setin interfaceIValueAccessor<Object>- Parameters:
value- The value to set
-
-