public class BooleanInput extends AbstractInput<java.lang.Boolean> implements ParseInput<java.lang.Boolean>, BinaryInput<java.lang.Boolean>
validators
Constructor and Description |
---|
BooleanInput() |
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(InputVisitor<R> vis) |
java.lang.Boolean |
convert(java.lang.Object v)
Perform any supported type conversions to to generate a value of the
target type
|
java.lang.String |
getChecked()
String value corresponding to a checked input
|
java.lang.String |
getPrettyString(java.lang.Boolean value)
Convert a value into a user friendly string.
|
java.lang.String |
getString(java.lang.Boolean value)
get a String representation of an Object that is compatible with the way
the input is parsed
|
boolean |
isChecked()
Is the input checked or not
|
java.lang.Boolean |
parseValue(java.lang.String v)
Parse a String into the correct type for this input.
|
void |
setChecked(boolean value)
Set the state of the input
|
getValue, setKey, setValue
addValidator, getKey, getString, removeValidator, validate, validateInner
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getString, parse
addValidator, getKey, getValue, isEmpty, removeValidator, setKey, setValue, validate
public java.lang.Boolean parseValue(java.lang.String v) throws ParseException
ParseInput
Input.getString(Object)
method.parseValue
in interface ParseInput<java.lang.Boolean>
ParseException
public java.lang.Boolean convert(java.lang.Object v) throws TypeError
Input
public java.lang.String getPrettyString(java.lang.Boolean value)
Input
getPrettyString
in interface Input<java.lang.Boolean>
getPrettyString
in class BaseInput<java.lang.Boolean>
ListInput
public java.lang.String getString(java.lang.Boolean value)
BaseInput
getString
in interface Input<java.lang.Boolean>
getString
in class BaseInput<java.lang.Boolean>
ParseInput
public final <R> R accept(InputVisitor<R> vis) throws java.lang.Exception
public boolean isChecked()
BinaryInput
isChecked
in interface BinaryInput<java.lang.Boolean>
public void setChecked(boolean value)
BinaryInput
setChecked
in interface BinaryInput<java.lang.Boolean>
public java.lang.String getChecked()
BinaryInput
getChecked
in interface BinaryInput<java.lang.Boolean>