public class BooleanPropertyWrapper extends java.lang.Object implements IBooleanProperty, IStringSelectionProperty
IBooleanProperty.WithStateIStringSelectionProperty.WithState| Constructor and Description |
|---|
BooleanPropertyWrapper(boolean value,
java.lang.String trueName,
java.lang.String falseName) |
BooleanPropertyWrapper(IBooleanProperty delegateFor,
java.lang.String trueName,
java.lang.String falseName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean()
Get the boolean value.
|
java.lang.String |
getString()
Get the string value.
|
java.util.Set<java.lang.String> |
getValidStringValues()
Get the set of valid string values or null.
|
boolean |
isValidBoolean(boolean value)
Returns true if the boolean value is valid.
|
boolean |
isValidString(java.lang.String value)
Returns true if the string value is valid.
|
void |
setBoolean(boolean value)
Set the boolean value, regardless of it being a valid value or not.
|
void |
setString(java.lang.String value)
Set the string value, regardless of it being a valid value or not.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittrySetBooleantrySetStringpublic BooleanPropertyWrapper(boolean value,
java.lang.String trueName,
java.lang.String falseName)
public BooleanPropertyWrapper(IBooleanProperty delegateFor, java.lang.String trueName, java.lang.String falseName)
public boolean getBoolean()
IBooleanPropertygetBoolean in interface IBooleanPropertypublic void setBoolean(boolean value)
IBooleanPropertysetBoolean in interface IBooleanPropertyvalue - the boolean valuepublic boolean isValidBoolean(boolean value)
IBooleanPropertyisValidBoolean in interface IBooleanPropertyvalue - the boolean valuepublic java.lang.String getString()
IStringPropertygetString in interface IStringPropertypublic void setString(java.lang.String value)
IStringPropertysetString in interface IStringPropertyvalue - the string valuepublic boolean isValidString(java.lang.String value)
IStringSelectionPropertyisValidString in interface IStringPropertyisValidString in interface IStringSelectionPropertyvalue - the string valuepublic java.util.Set<java.lang.String> getValidStringValues()
IStringSelectionPropertygetValidStringValues in interface IStringSelectionProperty