Enum ConnectionState

java.lang.Object
java.lang.Enum<ConnectionState>
de.bsvrz.dav.dav.main.ConnectionState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ConnectionState>, java.lang.constant.Constable

public enum ConnectionState
extends java.lang.Enum<ConnectionState>
Stellt einen Verbindungsstatus einer Anmeldung dar
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant Description
    FROM_LOCAL_OK
    Lokale Verbindung, Status immer OK
    FROM_REMOTE_OK
    Eingehende Verbindung, Status immer OK
    TO_REMOTE_MULTIPLE
    Ausgehende Verbindung, hinter dem verbundenen Datenverteiler gibt es mehrere Zentraldatenverteiler
    TO_REMOTE_NOT_ALLOWED
    Ausgehende Verbindung, anderer Datenverteiler ist zuständig, aber es sind keine Rechte vorhanden
    TO_REMOTE_NOT_RESPONSIBLE
    Ausgehende Verbindung, anderer Datenverteiler ist nicht zuständig
    TO_REMOTE_OK
    Ausgehende Verbindung, anderer Datenverteiler ist zuständig (OK)
    TO_REMOTE_WAITING
    Ausgehende Verbindung, warten auf Antwort (receipt/Quittung) des Kommunikationspartners
  • Method Summary

    Modifier and Type Method Description
    static ConnectionState fromByte​(byte b)
    Wandelt ein TransmitterSubscriptionsConstants-Byte in einen Status um
    boolean isValid()
    Gibt zurück, ob die Anmeldung gültig ist
    static ConnectionState valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static ConnectionState[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • FROM_LOCAL_OK

      public static final ConnectionState FROM_LOCAL_OK
      Lokale Verbindung, Status immer OK
    • FROM_REMOTE_OK

      public static final ConnectionState FROM_REMOTE_OK
      Eingehende Verbindung, Status immer OK
    • TO_REMOTE_WAITING

      public static final ConnectionState TO_REMOTE_WAITING
      Ausgehende Verbindung, warten auf Antwort (receipt/Quittung) des Kommunikationspartners
    • TO_REMOTE_OK

      public static final ConnectionState TO_REMOTE_OK
      Ausgehende Verbindung, anderer Datenverteiler ist zuständig (OK)
    • TO_REMOTE_NOT_RESPONSIBLE

      public static final ConnectionState TO_REMOTE_NOT_RESPONSIBLE
      Ausgehende Verbindung, anderer Datenverteiler ist nicht zuständig
    • TO_REMOTE_NOT_ALLOWED

      public static final ConnectionState TO_REMOTE_NOT_ALLOWED
      Ausgehende Verbindung, anderer Datenverteiler ist zuständig, aber es sind keine Rechte vorhanden
    • TO_REMOTE_MULTIPLE

      public static final ConnectionState TO_REMOTE_MULTIPLE
      Ausgehende Verbindung, hinter dem verbundenen Datenverteiler gibt es mehrere Zentraldatenverteiler
  • Method Details

    • values

      public static ConnectionState[] 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 ConnectionState valueOf​(java.lang.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:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
    • fromByte

      public static ConnectionState fromByte​(byte b)
      Wandelt ein TransmitterSubscriptionsConstants-Byte in einen Status um
      Parameters:
      b - byte
      Returns:
      Status
    • isValid

      public boolean isValid()
      Gibt zurück, ob die Anmeldung gültig ist
      Returns:
      True bei gültiger Anmeldung, siehe Definitionen der einzelnen Enums