Enum StateCode

  • All Implemented Interfaces:
    Serializable, Comparable<StateCode>

    public enum StateCode
    extends Enum<StateCode>
    Dieser AufzählungType enthält alle bekannten Länderkürzel.
    !!! Achtung
    NW / für Nordrhein-Westfalen gibt es keine Region
    statt dessen muss NO / "Nordrhein" oder WL / "Westfalen-Lippe" benutzt werden
    Author:
    Michael Buckendahl
    • Method Detail

      • values

        public static StateCode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (StateCode c : StateCode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static StateCode 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
      • getStatename

        public String getStatename()
        Name des Bundeslandes.
        Returns:
        String Gibt den Namen des Bundeslandes zurück.
      • getXmlId

        public Integer getXmlId()
        XmlId des Bundeslandes.
        Returns:
        Integer gibt die laufende Nummer des Bundeslandes aus der XML zurück.
        !!! Achtung "Westfalen-Lippe" und "Nordrhein" haben die gleichen nummern. !!!
      • getRegionNumber

        public Integer getRegionNumber()
        Regionsnummer des Bundeslandes.
        Returns:
        Integer gibt die KV-Regionsnummer zurück.