public class NumericAttributeType extends java.lang.Object implements IPrimitiveAttributeType<java.lang.Double>
| Constructor and Description |
|---|
NumericAttributeType() |
| Modifier and Type | Method and Description |
|---|---|
IAttributeValue<java.lang.Double> |
buildAttributeValue(java.lang.Object value)
Casts the value to the respective type and returns an attribute value with the creating attribute type as the referenced type.
|
IAttributeValue<java.lang.Double> |
buildAttributeValue(java.lang.String stringDescription)
Builds an attribute value object from a string description.
|
boolean |
isValidValue(java.lang.Double value)
Validates whether a value conforms to this type.
|
java.lang.String |
toString() |
public boolean isValidValue(java.lang.Double value)
IAttributeTypeisValidValue in interface IAttributeType<java.lang.Double>value - The value to validated.public IAttributeValue<java.lang.Double> buildAttributeValue(java.lang.Object value)
IAttributeTypebuildAttributeValue in interface IAttributeType<java.lang.Double>value - The value of the attribute.public IAttributeValue<java.lang.Double> buildAttributeValue(java.lang.String stringDescription)
IAttributeTypebuildAttributeValue in interface IAttributeType<java.lang.Double>stringDescription - A String-format description of the attribute's value.public java.lang.String toString()
toString in class java.lang.Object