Class AttributeValue
- 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ückboolean
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
-
-
-
-
Method Detail
-
getValue
public final java.lang.Object getValue()
Description copied from class:AttributeBaseValue
Gibt den Wert des Attributs zurück.- Specified by:
getValue
in classAttributeBaseValue
- 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 classAttributeBaseValue
- 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 classAttributeBaseValue
- 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 classAttributeBaseValue
- Parameters:
attributeBaseValue
- zu vergleichendes Attribut- Returns:
true
, wenn die Attribute gleich sind, sonstfalse
-
hashCode
public final int hashCode()
Gibt den Hashcode zurück- Overrides:
hashCode
in classjava.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 classAttributeBaseValue
- Returns:
- Kopie dieses Attributs
-
cloneObject
public final AttributeBaseValue cloneObject()
Description copied from class:AttributeBaseValue
Erzeugt eine Kopie dieses Attributs.- Specified by:
cloneObject
in classAttributeBaseValue
- 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 classAttributeBaseValue
- Returns:
true
, wenn das Attribut einen Wert besitzt, sonstfalse
-
-