net.sourceforge.pmd.lang.rule.properties
Class LongProperty
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<Long>
net.sourceforge.pmd.lang.rule.properties.LongProperty
- All Implemented Interfaces:
- Comparable<PropertyDescriptor<?>>, NumericPropertyDescriptor<Long>, PropertyDescriptor<Long>
public class LongProperty
- extends AbstractNumericProperty<Long>
Defines a datatype that supports the single Long property values within an
upper and lower boundary.
- Author:
- Brian Remedios
Constructor Summary |
LongProperty(String theName,
String theDescription,
Long min,
Long max,
Long theDefault,
float theUIOrder)
Constructor for LongProperty. |
LongProperty(String theName,
String theDescription,
String minStr,
String maxStr,
String defaultStr,
float theUIOrder)
Constructor for LongProperty that limits itself to a single value within
the specified limits. |
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
LongProperty
public LongProperty(String theName,
String theDescription,
Long min,
Long max,
Long theDefault,
float theUIOrder)
- Constructor for LongProperty.
- Parameters:
theName
- StringtheDescription
- Stringmin
- Longmax
- LongtheDefault
- LongtheUIOrder
- float
- Throws:
IllegalArgumentException
LongProperty
public LongProperty(String theName,
String theDescription,
String minStr,
String maxStr,
String defaultStr,
float theUIOrder)
- Constructor for LongProperty that limits itself to a single value within
the specified limits. Converts string arguments into the Long values.
- Parameters:
theName
- StringtheDescription
- StringminStr
- StringmaxStr
- StringdefaultStr
- StringtheUIOrder
- float
- Throws:
IllegalArgumentException
longFrom
public static Long longFrom(String numberString)
- Parameters:
numberString
- String
- Returns:
- Long
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
Copyright © 2002-2015 InfoEther. All Rights Reserved.