public class AttributeValue extends AttributeBaseValue
Modifier and Type | Field and Description |
---|---|
private static NumberFormat |
_numberFormat
Eine Hilfsvariable für die Zahlenformatierung
|
private static int |
_precision
Wieviel Stellen Genauigkeit bei Gleitkommazahlen
|
private DataValue |
_value
Der Attributeswert
|
_attribute, _dataModel, _hashCode
Constructor and Description |
---|
AttributeValue(DataModel dataModel,
Attribute attribute)
Erzeugt ein neues Objekt mit den gegebenen Parametern.
|
Modifier and Type | Method and 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.
|
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
|
getAttribute, getName
private static final int _precision
private static final NumberFormat _numberFormat
private DataValue _value
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
- AusgabestromIOException
- Falls der Schreibvorgang nicht durchgeführt werden konnte.public final boolean equals(AttributeBaseValue attributeBaseValue)
AttributeBaseValue
equals
in class AttributeBaseValue
attributeBaseValue
- zu vergleichendes Attributtrue
, wenn die Attribute gleich sind, sonst false
public final int hashCode()
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