net.sourceforge.pmd.properties
Class DoubleProperty

java.lang.Object
  extended by net.sourceforge.pmd.properties.AbstractPMDProperty
      extended by net.sourceforge.pmd.properties.AbstractScalarProperty
          extended by net.sourceforge.pmd.properties.DoubleProperty
All Implemented Interfaces:
java.lang.Comparable<PropertyDescriptor>, PropertyDescriptor

public class DoubleProperty
extends AbstractScalarProperty

Defines a property type that support double property values.

Author:
Brian Remedios

Field Summary
 
Fields inherited from class net.sourceforge.pmd.properties.AbstractPMDProperty
multiValueDelimiter
 
Fields inherited from interface net.sourceforge.pmd.PropertyDescriptor
emptyPropertySet
 
Constructor Summary
DoubleProperty(java.lang.String theName, java.lang.String theDescription, double[] defaultValues, float theUIOrder, int theMaxValues)
          Constructor for DoubleProperty.
DoubleProperty(java.lang.String theName, java.lang.String theDescription, java.lang.Double[] defaultValues, float theUIOrder, int theMaxValues)
          Constructor for DoubleProperty.
DoubleProperty(java.lang.String theName, java.lang.String theDescription, double theDefault, float theUIOrder)
          Constructor for DoubleProperty.
 
Method Summary
protected  java.lang.Object[] arrayFor(int size)
          Method arrayFor.
protected  java.lang.Object createFrom(java.lang.String value)
          Method createFrom.
 java.lang.Class<java.lang.Double> type()
          Method type.
 
Methods inherited from class net.sourceforge.pmd.properties.AbstractScalarProperty
valueFrom
 
Methods inherited from class net.sourceforge.pmd.properties.AbstractPMDProperty
areEqual, asDelimitedString, asString, choices, compareTo, defaultValue, description, errorFor, isArray, isRequired, maxValueCount, maxValueCount, multiValueDelimiter, multiValueDelimiter, name, preferredRowCount, propertyErrorFor, typeErrorFor, uiOrder, valueErrorFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleProperty

public DoubleProperty(java.lang.String theName,
                      java.lang.String theDescription,
                      double theDefault,
                      float theUIOrder)
Constructor for DoubleProperty.

Parameters:
theName - String
theDescription - String
theDefault - double
theUIOrder - float

DoubleProperty

public DoubleProperty(java.lang.String theName,
                      java.lang.String theDescription,
                      double[] defaultValues,
                      float theUIOrder,
                      int theMaxValues)
Constructor for DoubleProperty.

Parameters:
theName - String
theDescription - String
defaultValues - boolean[]
theUIOrder - float
theMaxValues - int

DoubleProperty

public DoubleProperty(java.lang.String theName,
                      java.lang.String theDescription,
                      java.lang.Double[] defaultValues,
                      float theUIOrder,
                      int theMaxValues)
Constructor for DoubleProperty.

Parameters:
theName - String
theDescription - String
defaultValues - Double[]
theUIOrder - float
theMaxValues - int
Method Detail

type

public java.lang.Class<java.lang.Double> type()
Method type.

Returns:
Class
See Also:
PropertyDescriptor.type()

createFrom

protected java.lang.Object createFrom(java.lang.String value)
Method createFrom.

Specified by:
createFrom in class AbstractScalarProperty
Parameters:
value - String
Returns:
Object

arrayFor

protected java.lang.Object[] arrayFor(int size)
Method arrayFor.

Specified by:
arrayFor in class AbstractScalarProperty
Parameters:
size - int
Returns:
Object[]


Copyright © 2002-2011 InfoEther. All Rights Reserved.