|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.bsvrz.dav.daf.communication.dataRepresentation.AttributeBaseValue
de.bsvrz.dav.daf.communication.dataRepresentation.AttributeValue
public class AttributeValue
TBD Beschreibung
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 |
---|
private static final int _precision
private static final NumberFormat _numberFormat
private DataValue _value
Constructor Detail |
---|
public AttributeValue(DataModel dataModel, Attribute attribute)
dataModel
- Datenmodellattribute
- AttributeMethod Detail |
---|
public final Object getValue()
AttributeBaseValue
getValue
in class AttributeBaseValue
public final void setValue(DataValue value)
AttributeBaseValue
setValue
in class AttributeBaseValue
value
- neuer Wert des Attributspublic final void writeValue(DataOutputStream out) throws IOException
AttributeBaseValue
writeValue
in class AttributeBaseValue
out
- Ausgabestrom
IOException
- Falls der Schreibvorgang nicht durchgeführt werden konnte.public final boolean equals(AttributeBaseValue attributeBaseValue)
AttributeBaseValue
equals
in class AttributeBaseValue
attributeBaseValue
- zu vergleichendes Attribut
true
, wenn die Attribute gleich sind, sonst false
public final int hashCode()
hashCode
in class Object
public final AttributeBaseValue clonePlain()
AttributeBaseValue
clonePlain
in class AttributeBaseValue
public final AttributeBaseValue cloneObject()
AttributeBaseValue
cloneObject
in class AttributeBaseValue
public final boolean hasValue()
AttributeBaseValue
hasValue
in class AttributeBaseValue
true
, wenn das Attribut einen Wert besitzt, sonst false
private final StringBuffer getFormatedValue(IntegerAttributeType attributeType, long value) throws ConfigurationException
ConfigurationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |