net.sourceforge.pmd.lang.rule.properties
Class LongMultiProperty
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<Long[]>
net.sourceforge.pmd.lang.rule.properties.LongMultiProperty
- All Implemented Interfaces:
- Comparable<PropertyDescriptor<?>>, NumericPropertyDescriptor<Long[]>, PropertyDescriptor<Long[]>
public class LongMultiProperty
- extends AbstractMultiNumericProperty<Long[]>
Defines a datatype that supports multiple Long 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
LongMultiProperty
public LongMultiProperty(String theName,
String theDescription,
Long min,
Long max,
Long[] theDefaults,
float theUIOrder)
- Constructor for LongProperty.
- Parameters:
theName
- StringtheDescription
- Stringmin
- Longmax
- LongtheDefaults
- Long[]theUIOrder
- float
- Throws:
IllegalArgumentException
type
public Class<Long[]> 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<Long[]>
- Parameters:
value
- String
- Returns:
- Object
arrayFor
protected Object[] arrayFor(int size)
- Returns an array of the correct type for the receiver.
- Overrides:
arrayFor
in class AbstractScalarProperty<Long[]>
- Parameters:
size
- int
- Returns:
- Object[]
Copyright © 2002-2015 InfoEther. All Rights Reserved.