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<java.lang.Long[]>
net.sourceforge.pmd.lang.rule.properties.LongMultiProperty
- All Implemented Interfaces:
- java.lang.Comparable<PropertyDescriptor<?>>, NumericPropertyDescriptor<java.lang.Long[]>, PropertyDescriptor<java.lang.Long[]>
public class LongMultiProperty
- extends AbstractMultiNumericProperty<java.lang.Long[]>
Defines a datatype that supports multiple Long property values within an
upper and lower boundary.
- Author:
- Brian Remedios
Constructor Summary |
LongMultiProperty(java.lang.String theName,
java.lang.String theDescription,
java.lang.Long min,
java.lang.Long max,
java.lang.Long[] theDefaults,
float theUIOrder)
Constructor for LongProperty. |
Method Summary |
protected java.lang.Object[] |
arrayFor(int size)
Returns an array of the correct type for the receiver. |
protected java.lang.Object |
createFrom(java.lang.String value)
|
java.lang.Class<java.lang.Long[]> |
type()
Denotes the value datatype. |
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 class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sourceforge.pmd.PropertyDescriptor |
asDelimitedString, attributeValuesById, choices, defaultValue, description, errorFor, isRequired, multiValueDelimiter, name, preferredRowCount, propertyErrorFor, uiOrder, valueFrom |
Methods inherited from interface java.lang.Comparable |
compareTo |
FACTORY
public static final PropertyDescriptorFactory FACTORY
LongMultiProperty
public LongMultiProperty(java.lang.String theName,
java.lang.String theDescription,
java.lang.Long min,
java.lang.Long max,
java.lang.Long[] theDefaults,
float theUIOrder)
- Constructor for LongProperty.
- Parameters:
theName
- StringtheDescription
- Stringmin
- Longmax
- LongtheDefaults
- Long[]theUIOrder
- float
- Throws:
java.lang.IllegalArgumentException
type
public java.lang.Class<java.lang.Long[]> type()
- Description copied from interface:
PropertyDescriptor
- Denotes the value datatype.
- Returns:
- Class
- See Also:
PropertyDescriptor.type()
createFrom
protected java.lang.Object createFrom(java.lang.String value)
- Specified by:
createFrom
in class AbstractScalarProperty<java.lang.Long[]>
- Parameters:
value
- String
- Returns:
- Object
arrayFor
protected java.lang.Object[] arrayFor(int size)
- Returns an array of the correct type for the receiver.
- Overrides:
arrayFor
in class AbstractScalarProperty<java.lang.Long[]>
- Parameters:
size
- int
- Returns:
- Object[]
Copyright © 2002-2015 InfoEther. All Rights Reserved.