de.bsvrz.dav.daf.communication.dataRepresentation
Class AttributeBaseValueDataFactory.AttributeValueAdapter.IntegerValueAdapter

java.lang.Object
  extended by de.bsvrz.dav.daf.communication.dataRepresentation.AbstractData.TextValue
      extended by de.bsvrz.dav.daf.communication.dataRepresentation.AbstractData.NumberValue
          extended by de.bsvrz.dav.daf.communication.dataRepresentation.AttributeBaseValueDataFactory.AttributeValueAdapter.NumberValueAdapter
              extended by de.bsvrz.dav.daf.communication.dataRepresentation.AttributeBaseValueDataFactory.AttributeValueAdapter.IntegerValueAdapter
All Implemented Interfaces:
Data.NumberValue, Data.TextValue
Direct Known Subclasses:
AttributeBaseValueDataFactory.AttributeValueAdapter.ScaledValueAdapter, AttributeBaseValueDataFactory.AttributeValueAdapter.UnscaledValueAdapter
Enclosing class:
AttributeBaseValueDataFactory.AttributeValueAdapter

private abstract static class AttributeBaseValueDataFactory.AttributeValueAdapter.IntegerValueAdapter
extends AttributeBaseValueDataFactory.AttributeValueAdapter.NumberValueAdapter


Field Summary
private static Pattern _locationDistancePattern
           
 
Constructor Summary
private AttributeBaseValueDataFactory.AttributeValueAdapter.IntegerValueAdapter()
           
 
Method Summary
protected abstract  AttributeType getAttributeType()
           
protected abstract  String getName()
           
 IntegerValueState getState()
          Liefert den Wert eines Datums als Werte-Zustand zurück.
protected  IntegerValueState getState(long value, IntegerAttributeType type)
           
protected abstract  long getUnscaledLongValue()
           
 void setState(IntegerValueState newState)
          Setzt das Datum auf den im Werte-Zustand definierten Wert.
 void setText(String text)
          Setzt den Wert des Datums auf den im übergebenen Text enthalten Wert.
protected abstract  void setUnscaledLongValue(long value)
           
 
Methods inherited from class de.bsvrz.dav.daf.communication.dataRepresentation.AbstractData.NumberValue
byteValue, doubleValue, floatValue, intValue, isNumber, isState, longValue, set, set, set, set, shortValue
 
Methods inherited from class de.bsvrz.dav.daf.communication.dataRepresentation.AbstractData.TextValue
getSuffixText, getText, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.bsvrz.dav.daf.main.Data.TextValue
getSuffixText, getText, getValueText
 

Field Detail

_locationDistancePattern

private static Pattern _locationDistancePattern
Constructor Detail

AttributeBaseValueDataFactory.AttributeValueAdapter.IntegerValueAdapter

private AttributeBaseValueDataFactory.AttributeValueAdapter.IntegerValueAdapter()
Method Detail

getUnscaledLongValue

protected abstract long getUnscaledLongValue()

setUnscaledLongValue

protected abstract void setUnscaledLongValue(long value)

getAttributeType

protected abstract AttributeType getAttributeType()

getName

protected abstract String getName()

getState

protected IntegerValueState getState(long value,
                                     IntegerAttributeType type)

getState

public IntegerValueState getState()
Description copied from interface: Data.NumberValue
Liefert den Wert eines Datums als Werte-Zustand zurück.

Specified by:
getState in interface Data.NumberValue
Overrides:
getState in class AbstractData.NumberValue
Returns:
Werte-Zustand oder null, wenn der Wert keinem Wertezustand entspricht.

setText

public void setText(String text)
Description copied from interface: Data.TextValue
Setzt den Wert des Datums auf den im übergebenen Text enthalten Wert.

Specified by:
setText in interface Data.TextValue
Overrides:
setText in class AbstractData.NumberValue
Parameters:
text - Text mit dem zu setzenden Wert.

setState

public void setState(IntegerValueState newState)
Description copied from interface: Data.NumberValue
Setzt das Datum auf den im Werte-Zustand definierten Wert.

Specified by:
setState in interface Data.NumberValue
Overrides:
setState in class AbstractData.NumberValue
Parameters:
newState - Werte-Zustand