net.sourceforge.pmd.lang.rule.properties
Class IntegerMultiProperty

java.lang.Object
  extended by net.sourceforge.pmd.lang.rule.properties.AbstractProperty<T>
      extended by net.sourceforge.pmd.lang.rule.properties.AbstractScalarProperty<T>
          extended by net.sourceforge.pmd.lang.rule.properties.AbstractNumericProperty<T>
              extended by net.sourceforge.pmd.lang.rule.properties.AbstractMultiNumericProperty<Integer[]>
                  extended by 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

Field Summary
static PropertyDescriptorFactory FACTORY
           
 
Fields inherited from class net.sourceforge.pmd.lang.rule.properties.AbstractNumericProperty
NUMBER_FIELD_TYPES_BY_KEY
 
Fields inherited from class net.sourceforge.pmd.lang.rule.properties.AbstractProperty
DEFAULT_DELIMITER, DEFAULT_NUMERIC_DELIMITER
 
Constructor Summary
IntegerMultiProperty(String theName, String theDescription, Integer min, Integer max, Integer[] theDefaults, float theUIOrder)
          Constructor for IntegerProperty.
 
Method Summary
protected  Object[] arrayFor(int size)
           
protected  Object createFrom(String value)
           
 Class<Integer[]> type()
          Denotes the value datatype.
 
Methods inherited from class net.sourceforge.pmd.lang.rule.properties.AbstractMultiNumericProperty
defaultAsString, isMultiValue
 
Methods inherited from class net.sourceforge.pmd.lang.rule.properties.AbstractNumericProperty
addAttributesTo, lowerLimit, rangeString, upperLimit, valueErrorFor
 
Methods inherited from class net.sourceforge.pmd.lang.rule.properties.AbstractScalarProperty
valueFrom
 
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
 

Field Detail

FACTORY

public static final PropertyDescriptorFactory FACTORY
Constructor Detail

IntegerMultiProperty

public IntegerMultiProperty(String theName,
                            String theDescription,
                            Integer min,
                            Integer max,
                            Integer[] theDefaults,
                            float theUIOrder)
Constructor for IntegerProperty.

Parameters:
theName - String
theDescription - String
min - Integer
max - Integer
theDefaults - Integer[]
theUIOrder - float
Throws:
IllegalArgumentException
Method Detail

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.