Enum Datentyp

java.lang.Object
java.lang.Enum<Datentyp>
gdv.xport.feld.Datentyp
All Implemented Interfaces:
Serializable, Comparable<Datentyp>, Constable

public enum Datentyp extends Enum<Datentyp>
Dieser Aufzaehlungstyp repraesentiert die verschiedenen Datentypen, die im XML-Handbuch definiert sind. Er dient auch zur Abbildung dieser Datentypen auf die tatsaechliche Implementierung.
Since:
1.0 (29.10.2014)
Author:
oliver
  • Enum Constant Details

    • VUNUMMER

      public static final Datentyp VUNUMMER
      VU-Nummer.
    • ZEICHEN

      public static final Datentyp ZEICHEN
      Zeichen.
    • ALPHANUMERISCH

      public static final Datentyp ALPHANUMERISCH
      Alphanumerische Zeichen oder String.
    • DATUM

      public static final Datentyp DATUM
      Datum.
    • BETRAG

      public static final Datentyp BETRAG
      Betrag.
    • FLIESSKOMMA

      public static final Datentyp FLIESSKOMMA
      Gleitkomma-Zahlen.
    • NUMERISCH

      public static final Datentyp NUMERISCH
      Zahlen.
    • UHRZEIT

      public static final Datentyp UHRZEIT
      Zahlen.
    • UNBEKANNT

      public static final Datentyp UNBEKANNT
      Unbekannter Typ.
  • Method Details

    • values

      public static Datentyp[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Datentyp valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • asClass

      public Class<? extends Feld> asClass()
      Liefert den entsprechenden Datentyp als Klasse zurueck.
      Returns:
      z.B. NumFeld.class
    • asFeld

      @Deprecated public Feld asFeld(Bezeichner bezeichner, int anzahlBytes, int byteAddress)
      Deprecated.
      bitte entsprechende Methode mit ByteAdresse verwenden (TODO: wird mit v9 entsorgt)
      Liefert den Datentyp als Feld zurueck.
      Parameters:
      bezeichner - der Bezeichner
      anzahlBytes - die Anzahl an Bytes
      byteAddress - die Byte-Adresse
      Returns:
      z.B. ein NumFeld-Objekt
    • asFeld

      public Feld asFeld(Bezeichner bezeichner, int anzahlBytes, ByteAdresse byteAddress)
      Liefert den Datentyp als Feld zurueck.
      Parameters:
      bezeichner - der Bezeichner
      anzahlBytes - die Anzahl an Bytes
      byteAddress - die Byte-Adresse
      Returns:
      z.B. ein NumFeld-Objekt
      Since:
      7.1 (08-Jan-2024)
    • capitalize

      public String capitalize()
    • asValue

      public static Datentyp asValue(String name)
      Liefert den gewuenschten Datentyp zurueck.
      Parameters:
      name - Datentyp als String, z.B. "Numerisch"
      Returns:
      the datentyp
    • asString

      public static String asString(Feld feld)
      Wandelt einen Datentyp wieder zurueck in den String aus der GDV-XML-Beschreibung.
      Parameters:
      feld - z.B. ein numerischer Wert (ohne Nachkommastellen)
      Returns:
      z.B. "Numerisch"
      Since:
      5.0
    • asString

      public static String asString(Class<? extends Feld> clazz)
      Wandelt einen Datentyp wieder zurueck in den String aus der GDV-XML-Beschreibung.
      Parameters:
      clazz - z.B. NumFeld.class
      Returns:
      z.B. "Numerisch"
      Since:
      5.0