|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pmd.lang.rule.properties.AbstractProperty<T>
net.sourceforge.pmd.lang.rule.properties.AbstractScalarProperty<Boolean[]>
net.sourceforge.pmd.lang.rule.properties.BooleanMultiProperty
public class BooleanMultiProperty
Defines a property type that supports multiple Boolean values.
Constructor Summary | |
---|---|
BooleanMultiProperty(String theName,
String theDescription,
Boolean[] defaultValues,
float theUIOrder)
Constructor for BooleanMultiProperty that allows for multiple values. |
Method Summary | |
---|---|
protected Boolean[] |
arrayFor(int size)
|
protected Object |
createFrom(String value)
Creates and returns a Boolean instance from a raw string |
protected String |
defaultAsString()
|
boolean |
isMultiValue()
Returns whether the property is multi-valued, i.e. an array of strings, As unary property rule properties will return a value of one, you must use the get/setProperty accessors when working with the actual values. |
Class<Boolean[]> |
type()
Denotes the value datatype. |
Methods inherited from class net.sourceforge.pmd.lang.rule.properties.AbstractScalarProperty |
---|
valueFrom |
Methods inherited from class net.sourceforge.pmd.lang.rule.properties.AbstractProperty |
---|
addAttributesTo, areEqual, asDelimitedString, asDelimitedString, asString, attributeValuesById, choices, compareTo, defaultHasNullValue, defaultValue, description, equals, errorFor, hashCode, isArray, isRequired, multiValueDelimiter, name, preferredRowCount, propertyErrorFor, toString, typeErrorFor, uiOrder, valueErrorFor, valuesErrorFor |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BooleanMultiProperty(String theName, String theDescription, Boolean[] defaultValues, float theUIOrder)
theName
- StringtheDescription
- StringdefaultValues
- Boolean[]theUIOrder
- floatMethod Detail |
---|
public Class<Boolean[]> type()
PropertyDescriptor
PropertyDescriptor.type()
public boolean isMultiValue()
AbstractProperty
isMultiValue
in interface PropertyDescriptor<Boolean[]>
isMultiValue
in class AbstractProperty<Boolean[]>
PropertyDescriptor.isMultiValue()
protected Object createFrom(String value)
createFrom
in class AbstractScalarProperty<Boolean[]>
value
- String
protected Boolean[] arrayFor(int size)
arrayFor
in class AbstractScalarProperty<Boolean[]>
size
- int
protected String defaultAsString()
defaultAsString
in class AbstractProperty<Boolean[]>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |