net.sourceforge.pmd.lang.rule.properties
Class IntegerMultiProperty
java.lang.Object
net.sourceforge.pmd.lang.rule.properties.AbstractProperty<T>
net.sourceforge.pmd.lang.rule.properties.AbstractScalarProperty<T>
net.sourceforge.pmd.lang.rule.properties.AbstractNumericProperty<T>
net.sourceforge.pmd.lang.rule.properties.AbstractMultiNumericProperty<Integer[]>
net.sourceforge.pmd.lang.rule.properties.IntegerMultiProperty
- All Implemented Interfaces:
- Comparable<PropertyDescriptor<?>>, NumericPropertyDescriptor<Integer[]>, PropertyDescriptor<Integer[]>
public class IntegerMultiProperty
- extends AbstractMultiNumericProperty<Integer[]>
Defines a datatype that supports multiple Integer property values within an
upper and lower boundary.
- Author:
- Brian Remedios
Methods inherited from class net.sourceforge.pmd.lang.rule.properties.AbstractProperty |
areEqual, asDelimitedString, asDelimitedString, asString, attributeValuesById, choices, compareTo, defaultHasNullValue, defaultValue, description, equals, errorFor, hashCode, isArray, isRequired, multiValueDelimiter, name, preferredRowCount, propertyErrorFor, toString, typeErrorFor, uiOrder, valuesErrorFor |
Methods inherited from interface net.sourceforge.pmd.PropertyDescriptor |
asDelimitedString, attributeValuesById, choices, defaultValue, description, errorFor, isRequired, multiValueDelimiter, name, preferredRowCount, propertyErrorFor, uiOrder, valueFrom |
FACTORY
public static final PropertyDescriptorFactory FACTORY
IntegerMultiProperty
public IntegerMultiProperty(String theName,
String theDescription,
Integer min,
Integer max,
Integer[] theDefaults,
float theUIOrder)
- Constructor for IntegerProperty.
- Parameters:
theName
- StringtheDescription
- Stringmin
- Integermax
- IntegertheDefaults
- Integer[]theUIOrder
- float
- Throws:
IllegalArgumentException
type
public Class<Integer[]> type()
- Description copied from interface:
PropertyDescriptor
- Denotes the value datatype.
- Returns:
- Class
- See Also:
PropertyDescriptor.type()
createFrom
protected Object createFrom(String value)
- Specified by:
createFrom
in class AbstractScalarProperty<Integer[]>
- Parameters:
value
- String
- Returns:
- Object
arrayFor
protected Object[] arrayFor(int size)
- Overrides:
arrayFor
in class AbstractScalarProperty<Integer[]>
- Parameters:
size
- int
- Returns:
- Object[]
Copyright © 2002-2015 InfoEther. All Rights Reserved.