net.sourceforge.pmd.lang.rule.properties
Class DoubleProperty
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<Double>
net.sourceforge.pmd.lang.rule.properties.DoubleProperty
- All Implemented Interfaces:
- Comparable<PropertyDescriptor<?>>, NumericPropertyDescriptor<Double>, PropertyDescriptor<Double>
public class DoubleProperty
- extends AbstractNumericProperty<Double>
Defines a property type that support single double-type property values
within an upper and lower boundary.
- Author:
- Brian Remedios
Constructor Summary |
DoubleProperty(String theName,
String theDescription,
Double min,
Double max,
Double theDefault,
float theUIOrder)
Constructor for DoubleProperty. |
DoubleProperty(String theName,
String theDescription,
String minStr,
String maxStr,
String defaultStr,
float theUIOrder)
Constructor for DoubleProperty. |
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, isMultiValue, isRequired, multiValueDelimiter, name, preferredRowCount, propertyErrorFor, toString, typeErrorFor, uiOrder, valuesErrorFor |
Methods inherited from interface net.sourceforge.pmd.PropertyDescriptor |
asDelimitedString, attributeValuesById, choices, defaultValue, description, errorFor, isMultiValue, isRequired, multiValueDelimiter, name, preferredRowCount, propertyErrorFor, uiOrder, valueFrom |
FACTORY
public static final PropertyDescriptorFactory FACTORY
DoubleProperty
public DoubleProperty(String theName,
String theDescription,
Double min,
Double max,
Double theDefault,
float theUIOrder)
- Constructor for DoubleProperty.
- Parameters:
theName
- StringtheDescription
- Stringmin
- doublemax
- doubletheDefault
- doubletheUIOrder
- float
- Throws:
IllegalArgumentException
DoubleProperty
public DoubleProperty(String theName,
String theDescription,
String minStr,
String maxStr,
String defaultStr,
float theUIOrder)
- Constructor for DoubleProperty.
- Parameters:
theName
- StringtheDescription
- StringminStr
- StringmaxStr
- StringdefaultStr
- StringtheUIOrder
- float
- Throws:
IllegalArgumentException
doubleFrom
public static Double doubleFrom(String numberString)
- Parameters:
numberString
- String
- Returns:
- Double
type
public Class<Double> type()
- Description copied from interface:
PropertyDescriptor
- Denotes the value datatype.
- Returns:
- Class
- See Also:
PropertyDescriptor.type()
createFrom
protected Object createFrom(String value)
- Deserializes a string into its Double form.
- Specified by:
createFrom
in class AbstractScalarProperty<Double>
- Parameters:
value
- String
- Returns:
- Object
Copyright © 2002-2015 InfoEther. All Rights Reserved.