public class BooleanProperty extends AbstractScalarProperty<Boolean>
Modifier and Type | Field and Description |
---|---|
static PropertyDescriptorFactory |
FACTORY |
DEFAULT_DELIMITER, DEFAULT_NUMERIC_DELIMITER
Constructor and Description |
---|
BooleanProperty(String theName,
String theDescription,
Boolean defaultValue,
float theUIOrder)
Constructor for BooleanProperty limited to a single value.
|
BooleanProperty(String theName,
String theDescription,
String defaultBoolStr,
float theUIOrder)
Constructor for BooleanProperty limited to a single value.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
createFrom(String value)
Creates and returns a Boolean instance from a raw string
|
protected String |
defaultAsString() |
Class<Boolean> |
type()
Denotes the value datatype.
|
arrayFor, valueFrom
addAttributesTo, areEqual, asDelimitedString, asDelimitedString, asString, attributeValuesById, choices, compareTo, defaultHasNullValue, defaultValue, description, equals, errorFor, hashCode, isArray, isMultiValue, isRequired, multiValueDelimiter, name, preferredRowCount, propertyErrorFor, toString, typeErrorFor, uiOrder, valueErrorFor, valuesErrorFor
public static final PropertyDescriptorFactory FACTORY
public BooleanProperty(String theName, String theDescription, Boolean defaultValue, float theUIOrder)
theName
- StringtheDescription
- StringdefaultValue
- booleantheUIOrder
- floatpublic BooleanProperty(String theName, String theDescription, String defaultBoolStr, float theUIOrder)
theName
- StringtheDescription
- StringdefaultBoolStr
- StringtheUIOrder
- floatpublic Class<Boolean> type()
PropertyDescriptor
PropertyDescriptor.type()
protected String defaultAsString()
defaultAsString
in class AbstractProperty<Boolean>
protected Object createFrom(String value)
createFrom
in class AbstractScalarProperty<Boolean>
value
- StringCopyright © 2002-2017 PMD. All Rights Reserved.