public class IntegerNumericalAttribute extends AbstractAttribute
Integer attributes
name
Constructor and Description |
---|
IntegerNumericalAttribute()
Empty constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addInterval(Interval interval)
Adds an interval
|
AttributeType |
getType()
Access to the attribute type
|
Interval |
intervalValues()
Return an interval with the allowed values
|
boolean |
isValid(double internalValue)
Check if this internal attribute value is valid
|
boolean |
isValid(java.lang.Object externalValue)
Check if this external attribute value is valid
|
double |
parse(java.lang.String externalValue)
Parse an external value to obtain the internal value of the
Attribute
|
java.lang.String |
show(double internalValue)
Show an String which represents a given real value
|
getName, setName
protected void addInterval(Interval interval)
Adds an interval
interval
- Interval to be addedpublic AttributeType getType()
Access to the attribute type
getType
in interface IAttribute
getType
in class AbstractAttribute
public boolean isValid(double internalValue)
Check if this internal attribute value is valid
isValid
in interface IAttribute
isValid
in class AbstractAttribute
internalValue
- value to check
public boolean isValid(java.lang.Object externalValue)
Check if this external attribute value is valid
isValid
in interface IAttribute
isValid
in class AbstractAttribute
externalValue
- Value to checkpublic double parse(java.lang.String externalValue)
Parse an external value to obtain the internal value of the Attribute
parse
in interface IAttribute
parse
in class AbstractAttribute
externalValue
- external value to parsepublic java.lang.String show(double internalValue)
Show an String which represents a given real value
show
in interface IAttribute
show
in class AbstractAttribute
internalValue
- internal value asked.public Interval intervalValues()
Return an interval with the allowed values