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, setValueaddValidator, getKey, getString, removeValidator, validate, validateInnerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetString, parseaddValidator, getKey, getValue, isEmpty, removeValidator, setKey, setValue, validatepublic java.lang.Boolean parseValue(java.lang.String v)
throws ParseException
ParseInputInput.getString(Object) method.parseValue in interface ParseInput<java.lang.Boolean>ParseExceptionpublic java.lang.Boolean convert(java.lang.Object v)
throws TypeError
Inputpublic java.lang.String getPrettyString(java.lang.Boolean value)
InputgetPrettyString in interface Input<java.lang.Boolean>getPrettyString in class BaseInput<java.lang.Boolean>ListInputpublic java.lang.String getString(java.lang.Boolean value)
BaseInputgetString in interface Input<java.lang.Boolean>getString in class BaseInput<java.lang.Boolean>ParseInputpublic final <R> R accept(InputVisitor<R> vis) throws java.lang.Exception
public boolean isChecked()
BinaryInputisChecked in interface BinaryInput<java.lang.Boolean>public void setChecked(boolean value)
BinaryInputsetChecked in interface BinaryInput<java.lang.Boolean>public java.lang.String getChecked()
BinaryInputgetChecked in interface BinaryInput<java.lang.Boolean>