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

public class AttributeValue
extends AttributeBaseValue
  • Field Summary

    Fields inherited from class de.bsvrz.dav.daf.communication.dataRepresentation.AttributeBaseValue

    _attribute, _dataModel, _hashCode
  • Constructor Summary

    Constructors
    Constructor Description
    AttributeValue​(DataModel dataModel, Attribute attribute)
    Erzeugt ein neues Objekt mit den gegebenen Parametern.
  • Method Summary

    Modifier and Type Method Description
    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.
    java.lang.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​(java.io.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
  • Constructor Details

    • AttributeValue

      public AttributeValue​(DataModel dataModel, Attribute attribute)
      Erzeugt ein neues Objekt mit den gegebenen Parametern.
      Parameters:
      dataModel - Datenmodell
      attribute - Attribute
  • Method Details

    • getValue

      public final java.lang.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​(java.io.DataOutputStream out) throws java.io.IOException
      Description copied from class: AttributeBaseValue
      Schreibt den Wert dieses Attributs in einen Ausgabestrom
      Specified by:
      writeValue in class AttributeBaseValue
      Parameters:
      out - Ausgabestrom
      Throws:
      java.io.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 java.lang.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