de.bsvrz.dav.daf.communication.dataRepresentation.datavalue
Class DataValue

java.lang.Object
  extended by de.bsvrz.dav.daf.communication.dataRepresentation.datavalue.DataValue
Direct Known Subclasses:
AttributeListArrayAttribute, AttributeListAttribute, ByteArrayAttribute, ByteAttribute, DoubleArrayAttribute, DoubleAttribute, FloatArrayAttribute, FloatAttribute, IntegerArrayAttribute, IntegerAttribute, LongArrayAttribute, LongAttribute, ShortArrayAttribute, ShortAttribute, StringArrayAttribute, StringAttribute

public abstract class DataValue
extends Object

Diese Klasse stellt eine Basisklasse für das Package Datavalue dar. Es werden Konstanten festgelegt und gemeinsamme Methoden deklariert.

Author:
Kappich Systemberatung

Field Summary
protected  byte _type
          Der Typ dieses Datensatzes
static byte ARRAY_OFFSET
          Konstante repräsentiert den Array-Offset
static byte ATTRIBUTE_LIST_ARRAY_TYPE
          Konstante repräsentiert den DatenTyp Arrayliste
static byte ATTRIBUTE_LIST_TYPE
          Konstante repräsentiert den DatenTyp Liste
static byte BIT_ARRAY_TYPE
          Konstante repräsentiert den DatenTyp bit Array
static byte BYTE_ARRAY_TYPE
          Konstante repräsentiert den DatenTyp byte Array
static byte BYTE_TYPE
          Konstante repräsentiert den DatenTyp byte
static byte DOUBLE_ARRAY_TYPE
          Konstante repräsentiert den DatenTyp double Array
static byte DOUBLE_TYPE
          Konstante repräsentiert den DatenTyp double
static byte FLOAT_ARRAY_TYPE
          Konstante repräsentiert den DatenTyp float Array
static byte FLOAT_TYPE
          Konstante repräsentiert den DatenTyp float
static byte INTEGER_ARRAY_TYPE
          Konstante repräsentiert den DatenTyp int Array
static byte INTEGER_TYPE
          Konstante repräsentiert den DatenTyp int
static byte LONG_ARRAY_TYPE
          Konstante repräsentiert den DatenTyp long Array
static byte LONG_TYPE
          Konstante repräsentiert den DatenTyp long
static byte SHORT_ARRAY_TYPE
          Konstante repräsentiert den DatenTyp short Array
static byte SHORT_TYPE
          Konstante repräsentiert den DatenTyp short
static byte STRING_ARRAY_TYPE
          Konstante repräsentiert den DatenTyp String Array
static byte STRING_TYPE
          Konstante repräsentiert den DatenTyp String
 
Constructor Summary
DataValue()
           
 
Method Summary
abstract  DataValue cloneObject()
          Diese Methode erzeugt eine Kopie dieses Datensatzes
static DataValue getObject(byte _type)
          Gibt ein leeres Objekt vom gegebenen Typ zurück
 byte getType()
          Gibt den Typ dieses Datensatzes zurück
abstract  Object getValue()
          gibt den Wert zurück des Objektes
abstract  String parseToString()
          Gibt ein String zurrück, der diesen Datensatz beschreibt
abstract  void read(DataInputStream in)
          Lesen eines Datensatzes vom gegebenen DataInputStream
abstract  void write(DataOutputStream out)
          Schreiben eines Datensatzes in den gegebenen DataOutputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BYTE_TYPE

public static final byte BYTE_TYPE
Konstante repräsentiert den DatenTyp byte

See Also:
Constant Field Values

SHORT_TYPE

public static final byte SHORT_TYPE
Konstante repräsentiert den DatenTyp short

See Also:
Constant Field Values

INTEGER_TYPE

public static final byte INTEGER_TYPE
Konstante repräsentiert den DatenTyp int

See Also:
Constant Field Values

LONG_TYPE

public static final byte LONG_TYPE
Konstante repräsentiert den DatenTyp long

See Also:
Constant Field Values

FLOAT_TYPE

public static final byte FLOAT_TYPE
Konstante repräsentiert den DatenTyp float

See Also:
Constant Field Values

DOUBLE_TYPE

public static final byte DOUBLE_TYPE
Konstante repräsentiert den DatenTyp double

See Also:
Constant Field Values

STRING_TYPE

public static final byte STRING_TYPE
Konstante repräsentiert den DatenTyp String

See Also:
Constant Field Values

BIT_ARRAY_TYPE

public static final byte BIT_ARRAY_TYPE
Konstante repräsentiert den DatenTyp bit Array

See Also:
Constant Field Values

BYTE_ARRAY_TYPE

public static final byte BYTE_ARRAY_TYPE
Konstante repräsentiert den DatenTyp byte Array

See Also:
Constant Field Values

SHORT_ARRAY_TYPE

public static final byte SHORT_ARRAY_TYPE
Konstante repräsentiert den DatenTyp short Array

See Also:
Constant Field Values

INTEGER_ARRAY_TYPE

public static final byte INTEGER_ARRAY_TYPE
Konstante repräsentiert den DatenTyp int Array

See Also:
Constant Field Values

LONG_ARRAY_TYPE

public static final byte LONG_ARRAY_TYPE
Konstante repräsentiert den DatenTyp long Array

See Also:
Constant Field Values

FLOAT_ARRAY_TYPE

public static final byte FLOAT_ARRAY_TYPE
Konstante repräsentiert den DatenTyp float Array

See Also:
Constant Field Values

DOUBLE_ARRAY_TYPE

public static final byte DOUBLE_ARRAY_TYPE
Konstante repräsentiert den DatenTyp double Array

See Also:
Constant Field Values

STRING_ARRAY_TYPE

public static final byte STRING_ARRAY_TYPE
Konstante repräsentiert den DatenTyp String Array

See Also:
Constant Field Values

ATTRIBUTE_LIST_TYPE

public static final byte ATTRIBUTE_LIST_TYPE
Konstante repräsentiert den DatenTyp Liste

See Also:
Constant Field Values

ATTRIBUTE_LIST_ARRAY_TYPE

public static final byte ATTRIBUTE_LIST_ARRAY_TYPE
Konstante repräsentiert den DatenTyp Arrayliste

See Also:
Constant Field Values

ARRAY_OFFSET

public static final byte ARRAY_OFFSET
Konstante repräsentiert den Array-Offset

See Also:
Constant Field Values

_type

protected byte _type
Der Typ dieses Datensatzes

Constructor Detail

DataValue

public DataValue()
Method Detail

getType

public final byte getType()
Gibt den Typ dieses Datensatzes zurück

Returns:
Typ dieses Datensatzes

getObject

public static DataValue getObject(byte _type)
Gibt ein leeres Objekt vom gegebenen Typ zurück

Parameters:
_type - _type des Objektes
Returns:
leeres Objekt vom Typ des Übergabeparameters

read

public abstract void read(DataInputStream in)
                   throws IOException
Lesen eines Datensatzes vom gegebenen DataInputStream

Parameters:
in - Eingabe-Stream
Throws:
IOException, - wenn beim Lesen vom Eingabe-Stream Fehler aufgetreten sind.
IOException

write

public abstract void write(DataOutputStream out)
                    throws IOException
Schreiben eines Datensatzes in den gegebenen DataOutputStream

Parameters:
out - Ausgabe-Stream
Throws:
IOException, - wenn beim Schreiben vom Ausgabe-Stream Fehler aufgetreten sind.
IOException

cloneObject

public abstract DataValue cloneObject()
Diese Methode erzeugt eine Kopie dieses Datensatzes

Returns:
Eine Kopie dieses Datensatzes

parseToString

public abstract String parseToString()
Gibt ein String zurrück, der diesen Datensatz beschreibt

Returns:
Der String, der diesen Datensatz beschreibt

getValue

public abstract Object getValue()
gibt den Wert zurück des Objektes

Returns:
der Wert des Objektes