de.bsvrz.dav.daf.communication.dataRepresentation.data.info.version1
Class NumberDefinitionInfo

java.lang.Object
  extended by de.bsvrz.dav.daf.communication.dataRepresentation.data.info.version1.AbstractAttributeDefinitionInfo
      extended by de.bsvrz.dav.daf.communication.dataRepresentation.data.info.version1.AttributeTypeDefinitionInfo
          extended by de.bsvrz.dav.daf.communication.dataRepresentation.data.info.version1.NumberDefinitionInfo
All Implemented Interfaces:
AttributeDefinitionInfo
Direct Known Subclasses:
ByteDefinitionInfo, IntDefinitionInfo, LongDefinitionInfo, ShortDefinitionInfo

public abstract class NumberDefinitionInfo
extends AttributeTypeDefinitionInfo

Klasse, die noch zu dokumentieren ist.

Author:
Kappich+Kniß Systemberatung Aachen (K2S), Roland Schmitz (rs)

Field Summary
protected static NumberFormat _integerNumberFormat
           
protected static NumberFormat _precisionTestNumberFormat
           
private  String _unit
           
private  String _unscaledUnit
           
private  Map _value2StateMap
           
 
Fields inherited from class de.bsvrz.dav.daf.communication.dataRepresentation.data.info.version1.AttributeTypeDefinitionInfo
_doubleNumberFormat
 
Constructor Summary
NumberDefinitionInfo(IntegerAttributeType att)
           
 
Method Summary
 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)
           
 
Methods inherited from class de.bsvrz.dav.daf.communication.dataRepresentation.data.info.version1.AttributeTypeDefinitionInfo
dump, getAttributeType, getItem, getItem, getItemCount, getSize, isList, readInt, readLong, readShort, readUnsignedInt
 
Methods inherited from class de.bsvrz.dav.daf.communication.dataRepresentation.data.info.version1.AbstractAttributeDefinitionInfo
forAttributeType, forAttributSet, forgetDataModel, getId, getMillis, getSeconds, getSystemObject, isReferenceAttribute, isTimeAttribute, unscaledByteValue, unscaledDoubleValue, unscaledFloatValue, unscaledIntValue, unscaledLongValue, unscaledShortValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.bsvrz.dav.daf.communication.dataRepresentation.data.info.AttributeDefinitionInfo
getFixedSize
 

Field Detail

_unit

private final String _unit

_unscaledUnit

private final String _unscaledUnit

_value2StateMap

private final Map _value2StateMap

_integerNumberFormat

protected static final NumberFormat _integerNumberFormat

_precisionTestNumberFormat

protected static final NumberFormat _precisionTestNumberFormat
Constructor Detail

NumberDefinitionInfo

public NumberDefinitionInfo(IntegerAttributeType att)
Method Detail

isSizeFixed

public boolean isSizeFixed()

isNumberAttribute

public boolean isNumberAttribute()
Specified by:
isNumberAttribute in interface AttributeDefinitionInfo
Overrides:
isNumberAttribute in class AbstractAttributeDefinitionInfo

isScalableNumberAttribute

public boolean isScalableNumberAttribute()
Specified by:
isScalableNumberAttribute in interface AttributeDefinitionInfo
Overrides:
isScalableNumberAttribute in class AbstractAttributeDefinitionInfo

isNumber

public boolean isNumber(byte[] bytes,
                        int offset)
Specified by:
isNumber in interface AttributeDefinitionInfo
Overrides:
isNumber in class AbstractAttributeDefinitionInfo

isState

public boolean isState(byte[] bytes,
                       int offset)
Specified by:
isState in interface AttributeDefinitionInfo
Overrides:
isState in class AbstractAttributeDefinitionInfo

getUnscaledValueText

public String getUnscaledValueText(byte[] bytes,
                                   int offset)
Specified by:
getUnscaledValueText in interface AttributeDefinitionInfo
Overrides:
getUnscaledValueText in class AbstractAttributeDefinitionInfo

getUnscaledSuffixText

public String getUnscaledSuffixText(byte[] bytes,
                                    int offset)
Specified by:
getUnscaledSuffixText in interface AttributeDefinitionInfo
Overrides:
getUnscaledSuffixText in class AbstractAttributeDefinitionInfo

getValueText

public String getValueText(byte[] bytes,
                           int offset)

getSuffixText

public String getSuffixText(byte[] bytes,
                            int offset)

getState

public IntegerValueState getState(byte[] bytes,
                                  int offset)
Specified by:
getState in interface AttributeDefinitionInfo
Overrides:
getState in class AbstractAttributeDefinitionInfo

getState

protected IntegerValueState getState(long value)

byteValue

public byte byteValue(byte[] bytes,
                      int offset)
Specified by:
byteValue in interface AttributeDefinitionInfo
Overrides:
byteValue in class AbstractAttributeDefinitionInfo

shortValue

public short shortValue(byte[] bytes,
                        int offset)
Specified by:
shortValue in interface AttributeDefinitionInfo
Overrides:
shortValue in class AbstractAttributeDefinitionInfo

intValue

public int intValue(byte[] bytes,
                    int offset)
Specified by:
intValue in interface AttributeDefinitionInfo
Overrides:
intValue in class AbstractAttributeDefinitionInfo

longValue

public long longValue(byte[] bytes,
                      int offset)
Specified by:
longValue in interface AttributeDefinitionInfo
Overrides:
longValue in class AbstractAttributeDefinitionInfo

floatValue

public float floatValue(byte[] bytes,
                        int offset)
Specified by:
floatValue in interface AttributeDefinitionInfo
Overrides:
floatValue in class AbstractAttributeDefinitionInfo

doubleValue

public double doubleValue(byte[] bytes,
                          int offset)
Specified by:
doubleValue in interface AttributeDefinitionInfo
Overrides:
doubleValue in class AbstractAttributeDefinitionInfo