public abstract class NumberDefinitionInfo extends AttributeTypeDefinitionInfo
Modifier and Type | Field and Description |
---|---|
protected static NumberFormat |
_integerNumberFormat |
protected static NumberFormat |
_precisionTestNumberFormat |
_doubleNumberFormat
Constructor and Description |
---|
NumberDefinitionInfo(IntegerAttributeType att) |
Modifier and Type | Method and Description |
---|---|
byte |
byteValue(byte[] bytes,
int offset) |
double |
doubleValue(byte[] bytes,
int offset) |
float |
floatValue(byte[] bytes,
int offset) |
IntegerValueState |
getState(byte[] bytes,
int offset) |
protected IntegerValueState |
getState(long value) |
String |
getSuffixText(byte[] bytes,
int offset) |
String |
getUnscaledSuffixText(byte[] bytes,
int offset) |
String |
getUnscaledValueText(byte[] bytes,
int offset) |
String |
getValueText(byte[] bytes,
int offset) |
int |
intValue(byte[] bytes,
int offset) |
boolean |
isNumber(byte[] bytes,
int offset) |
boolean |
isNumberAttribute() |
boolean |
isScalableNumberAttribute() |
boolean |
isSizeFixed() |
boolean |
isState(byte[] bytes,
int offset) |
long |
longValue(byte[] bytes,
int offset) |
short |
shortValue(byte[] bytes,
int offset) |
dump, getAttributeType, getItem, getItem, getItemCount, getSize, isList, readInt, readLong, readShort, readUnsignedInt
forAttributeType, forAttributSet, forgetDataModel, getId, getMillis, getSeconds, getSystemObject, isReferenceAttribute, isTimeAttribute, unscaledByteValue, unscaledDoubleValue, unscaledFloatValue, unscaledIntValue, unscaledLongValue, unscaledShortValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFixedSize
protected static final NumberFormat _integerNumberFormat
protected static final NumberFormat _precisionTestNumberFormat
public NumberDefinitionInfo(IntegerAttributeType att)
public boolean isSizeFixed()
public boolean isNumberAttribute()
isNumberAttribute
in interface AttributeDefinitionInfo
isNumberAttribute
in class AbstractAttributeDefinitionInfo
public boolean isScalableNumberAttribute()
isScalableNumberAttribute
in interface AttributeDefinitionInfo
isScalableNumberAttribute
in class AbstractAttributeDefinitionInfo
public boolean isNumber(byte[] bytes, int offset)
isNumber
in interface AttributeDefinitionInfo
isNumber
in class AbstractAttributeDefinitionInfo
public boolean isState(byte[] bytes, int offset)
isState
in interface AttributeDefinitionInfo
isState
in class AbstractAttributeDefinitionInfo
public String getUnscaledValueText(byte[] bytes, int offset)
getUnscaledValueText
in interface AttributeDefinitionInfo
getUnscaledValueText
in class AbstractAttributeDefinitionInfo
public String getUnscaledSuffixText(byte[] bytes, int offset)
getUnscaledSuffixText
in interface AttributeDefinitionInfo
getUnscaledSuffixText
in class AbstractAttributeDefinitionInfo
public String getValueText(byte[] bytes, int offset)
public String getSuffixText(byte[] bytes, int offset)
public IntegerValueState getState(byte[] bytes, int offset)
getState
in interface AttributeDefinitionInfo
getState
in class AbstractAttributeDefinitionInfo
protected IntegerValueState getState(long value)
public byte byteValue(byte[] bytes, int offset)
byteValue
in interface AttributeDefinitionInfo
byteValue
in class AbstractAttributeDefinitionInfo
public short shortValue(byte[] bytes, int offset)
shortValue
in interface AttributeDefinitionInfo
shortValue
in class AbstractAttributeDefinitionInfo
public int intValue(byte[] bytes, int offset)
intValue
in interface AttributeDefinitionInfo
intValue
in class AbstractAttributeDefinitionInfo
public long longValue(byte[] bytes, int offset)
longValue
in interface AttributeDefinitionInfo
longValue
in class AbstractAttributeDefinitionInfo
public float floatValue(byte[] bytes, int offset)
floatValue
in interface AttributeDefinitionInfo
floatValue
in class AbstractAttributeDefinitionInfo
public double doubleValue(byte[] bytes, int offset)
doubleValue
in interface AttributeDefinitionInfo
doubleValue
in class AbstractAttributeDefinitionInfo