de.bsvrz.dav.daf.communication.dataRepresentation
Class AttributeValue

java.lang.Object
  extended by de.bsvrz.dav.daf.communication.dataRepresentation.AttributeBaseValue
      extended by de.bsvrz.dav.daf.communication.dataRepresentation.AttributeValue

public class AttributeValue
extends AttributeBaseValue

TBD Beschreibung

Author:
Kappich Systemberatung

Field Summary
private static NumberFormat _numberFormat
          Eine Hilfsvariable für die Zahlenformatierung
private static int _precision
          Wieviel Stellen Genauigkeit bei Gleitkommazahlen
private  DataValue _value
          Der Attributeswert
 
Fields inherited from class de.bsvrz.dav.daf.communication.dataRepresentation.AttributeBaseValue
_attribute, _dataModel, _hashCode
 
Constructor Summary
AttributeValue(DataModel dataModel, Attribute attribute)
          Erzeugt ein neues Objekt mit den gegebenen Parametern.
 
Method Summary
 AttributeBaseValue cloneObject()
          Erzeugt eine Kopie dieses Attributs.
 AttributeBaseValue clonePlain()
          Erzeugt eine Kopie dieses Attributs, allerdings ohne Wert.
 boolean equals(AttributeBaseValue attributeBaseValue)
          Überprüft, ob das Attribut/Attributwert mit dem angegebenen Attribut übereinstimmt.
private  StringBuffer getFormatedValue(IntegerAttributeType attributeType, long value)
           
 Object getValue()
          Gibt den Wert des Attributs zurück.
 int hashCode()
          Gibt den Hashcode zurück
 boolean hasValue()
          Ermittelt, ob dieses Attribut einen Wert besitzt.
 void setValue(DataValue value)
          Setzt den Wert dieses Attributs.
 void writeValue(DataOutputStream out)
          Schreibt den Wert dieses Attributs in einen Ausgabestrom
 
Methods inherited from class de.bsvrz.dav.daf.communication.dataRepresentation.AttributeBaseValue
getAttribute, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_precision

private static final int _precision
Wieviel Stellen Genauigkeit bei Gleitkommazahlen

See Also:
Constant Field Values

_numberFormat

private static final NumberFormat _numberFormat
Eine Hilfsvariable für die Zahlenformatierung


_value

private DataValue _value
Der Attributeswert

Constructor Detail

AttributeValue

public AttributeValue(DataModel dataModel,
                      Attribute attribute)
Erzeugt ein neues Objekt mit den gegebenen Parametern.

Parameters:
dataModel - Datenmodell
attribute - Attribute
Method Detail

getValue

public final Object getValue()
Description copied from class: AttributeBaseValue
Gibt den Wert des Attributs zurück.

Specified by:
getValue in class AttributeBaseValue
Returns:
der Wert des Attributs

setValue

public final void setValue(DataValue value)
Description copied from class: AttributeBaseValue
Setzt den Wert dieses Attributs.

Specified by:
setValue in class AttributeBaseValue
Parameters:
value - neuer Wert des Attributs

writeValue

public final void writeValue(DataOutputStream out)
                      throws IOException
Description copied from class: AttributeBaseValue
Schreibt den Wert dieses Attributs in einen Ausgabestrom

Specified by:
writeValue in class AttributeBaseValue
Parameters:
out - Ausgabestrom
Throws:
IOException - Falls der Schreibvorgang nicht durchgeführt werden konnte.

equals

public final boolean equals(AttributeBaseValue attributeBaseValue)
Description copied from class: AttributeBaseValue
Überprüft, ob das Attribut/Attributwert mit dem angegebenen Attribut übereinstimmt.

Specified by:
equals in class AttributeBaseValue
Parameters:
attributeBaseValue - zu vergleichendes Attribut
Returns:
true, wenn die Attribute gleich sind, sonst false

hashCode

public final int hashCode()
Gibt den Hashcode zurück

Overrides:
hashCode in class Object
Returns:
Hashcode

clonePlain

public final AttributeBaseValue clonePlain()
Description copied from class: AttributeBaseValue
Erzeugt eine Kopie dieses Attributs, allerdings ohne Wert. (nur die Beschreibung)

Specified by:
clonePlain in class AttributeBaseValue
Returns:
Kopie dieses Attributs

cloneObject

public final AttributeBaseValue cloneObject()
Description copied from class: AttributeBaseValue
Erzeugt eine Kopie dieses Attributs.

Specified by:
cloneObject in class AttributeBaseValue
Returns:
Kopie dieses Attributs

hasValue

public final boolean hasValue()
Description copied from class: AttributeBaseValue
Ermittelt, ob dieses Attribut einen Wert besitzt.

Specified by:
hasValue in class AttributeBaseValue
Returns:
true, wenn das Attribut einen Wert besitzt, sonst false

getFormatedValue

private final StringBuffer getFormatedValue(IntegerAttributeType attributeType,
                                            long value)
                                     throws ConfigurationException
Throws:
ConfigurationException