|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.simantics.databoard.type.Datatype
org.simantics.databoard.type.NumberType
public abstract class NumberType
NumberType is comparable primitive type: ByteType, IntegerType, DoubleType, LongType or FloatType
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.simantics.databoard.type.Datatype |
---|
Datatype.Visitor<T>, Datatype.Visitor1 |
Field Summary | |
---|---|
static java.lang.String |
KEY_RANGE
Value ranges that are valid. |
static java.lang.String |
KEY_UNIT
Unit string describes the quantity, magnitude and unit of the value. |
Fields inherited from class org.simantics.databoard.type.Datatype |
---|
metadata |
Constructor Summary | |
---|---|
NumberType()
|
Method Summary | |
---|---|
int |
getComponentCount()
Get component type count |
Datatype |
getComponentType(ChildReference path)
Get component type |
Datatype |
getComponentType(int index)
Get component type |
Range |
getRange()
|
java.lang.String |
getRangeStr()
|
java.lang.String |
getUnit()
Get the unit type. |
void |
setRange(Range range)
|
void |
setRange(java.lang.String range)
|
void |
setUnit(java.lang.String unit)
Set the unit type. |
Methods inherited from class org.simantics.databoard.type.Datatype |
---|
accept, accept, equals, hashCode, metadataHashCode, toSingleLineString, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String KEY_UNIT
public static final java.lang.String KEY_RANGE
Constructor Detail |
---|
public NumberType()
Method Detail |
---|
public java.lang.String getUnit()
Units
public void setUnit(java.lang.String unit)
unit
- the unit typeUnits
public Range getRange()
public java.lang.String getRangeStr()
public void setRange(java.lang.String range)
public void setRange(Range range)
public int getComponentCount()
Datatype
getComponentCount
in class Datatype
public Datatype getComponentType(int index)
Datatype
getComponentType
in class Datatype
index
- component index
public Datatype getComponentType(ChildReference path)
Datatype
getComponentType
in class Datatype
path
- child path or null to return this.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |