|
|||||||||
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 | |
---|---|
java.lang.String |
unit
Unit string describes the quentity, magnity and unit of the value. |
Constructor Summary | |
---|---|
NumberType()
|
Method Summary | |
---|---|
int |
count()
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, toSingleLineString, toString |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.String unit
Units
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 count()
Datatype
count
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 |