AttributeDefinitionInfo
ByteDefinitionInfo
, IntDefinitionInfo
, LongDefinitionInfo
, ShortDefinitionInfo
public abstract class NumberDefinitionInfo extends AttributeTypeDefinitionInfo
Modifier and Type | Field | Description |
---|---|---|
protected static java.text.NumberFormat |
_integerNumberFormat |
|
protected static java.text.NumberFormat |
_precisionTestNumberFormat |
_doubleNumberFormat
Constructor | Description |
---|---|
NumberDefinitionInfo(IntegerAttributeType att) |
Modifier and Type | Method | 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) |
|
java.lang.String |
getSuffixText(byte[] bytes,
int offset) |
|
java.lang.String |
getUnscaledSuffixText(byte[] bytes,
int offset) |
|
java.lang.String |
getUnscaledValueText(byte[] bytes,
int offset) |
|
java.lang.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) |
forAttributeType, forAttributSet, forgetDataModel, getId, getMillis, getSeconds, getSystemObject, isReferenceAttribute, isTimeAttribute, unscaledByteValue, unscaledDoubleValue, unscaledFloatValue, unscaledIntValue, unscaledLongValue, unscaledShortValue
getFixedSize
containsItem, dump, getAttributeType, getItem, getItem, getItemCount, getSize, isList, readInt, readLong, readShort, readUnsignedInt
protected static final java.text.NumberFormat _integerNumberFormat
protected static final java.text.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 java.lang.String getUnscaledValueText(byte[] bytes, int offset)
getUnscaledValueText
in interface AttributeDefinitionInfo
getUnscaledValueText
in class AbstractAttributeDefinitionInfo
public java.lang.String getUnscaledSuffixText(byte[] bytes, int offset)
getUnscaledSuffixText
in interface AttributeDefinitionInfo
getUnscaledSuffixText
in class AbstractAttributeDefinitionInfo
public java.lang.String getValueText(byte[] bytes, int offset)
public java.lang.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