public interface Scale extends Entity
| Modifier and Type | Method and Description |
|---|---|
DataType |
getDataType()
Gets the data type for this scale.
|
Number |
getMaximumValue()
Gets the maximum value in the scale.
|
Number |
getMinimumValue()
Gets the minimum value in the scale.
|
ScaleType |
getScaleType()
Gets the scale type for this scale.
|
List<Object> |
getValues()
Gets all possible values for this scale.
|
int |
indexOf(Object value)
Get the index of a value in the list of possible values.
|
void |
setDataType(DataType type) |
void |
setMaximumValue(Number maximum) |
void |
setMinimumValue(Number minimum) |
void |
setScaleType(ScaleType type) |
void |
setValues(List<? extends Object> values) |
getAbbreviation, getDescription, getTypegetName, getUniqueIdentifierNumber getMaximumValue()
null if the
maximum value is not applicable, e.g. for nominal scalesvoid setMaximumValue(Number maximum)
Number getMinimumValue()
null if the
maximum value is not applicable, e.g. for nominal scalesvoid setMinimumValue(Number minimum)
List<Object> getValues()
null the
number of possible values is large or infinite, e.g. for ratio
and interval scalesint indexOf(Object value)
indexOf on the list
of values as returned by getValues(). Especially useful
for ordinal scales where the order of values is important.value - one of the values in the list obtained with getValues()DataType getDataType()
void setDataType(DataType type)
ScaleType getScaleType()
void setScaleType(ScaleType type)
Copyright © 2016. All rights reserved.