Package de.xima.fc.prompt.mgmt.gui.model
Class PromptTestValueAccessor
- java.lang.Object
-
- de.xima.fc.prompt.mgmt.gui.model.PromptTestValueAccessor
-
- All Implemented Interfaces:
IValueAccessor<Object>,Serializable
public final class PromptTestValueAccessor extends Object implements IValueAccessor<Object>, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PromptTestValueAccessor()
-
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 newValue)Sets the value.
-
-
-
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 newValue)
Description copied from interface:IValueAccessorSets the value. This will makeIValueAccessor.hasValue()return true.- Specified by:
setin interfaceIValueAccessor<Object>- Parameters:
newValue- The value to set
-
-