Enum StateCode
- java.lang.Object
-
- java.lang.Enum<StateCode>
-
- org.iqtig.pseudonymisierung.enums.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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StateCode
fromKVRegion(Integer stateCodeInteger)
Wandelt die KV-Region-Nurmmer des Bundeslandes in den Aufzählungtypen um.static StateCode
fromString(String stateCodeString)
Liefert den EnumType zu dem entsprechenden String.static StateCode
fromXmlId(Integer stateCodeInteger)
Wandelt die im XML-Schema definierte Nummer in den Aufzählungtypen um.Integer
getRegionNumber()
Regionsnummer des Bundeslandes.String
getStatename()
Name des Bundeslandes.Integer
getXmlId()
XmlId des Bundeslandes.static StateCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static StateCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BA
public static final StateCode BA
-
BB
public static final StateCode BB
-
BE
public static final StateCode BE
-
BW
public static final StateCode BW
-
HB
public static final StateCode HB
-
HE
public static final StateCode HE
-
HH
public static final StateCode HH
-
MV
public static final StateCode MV
-
NI
public static final StateCode NI
-
NO
public static final StateCode NO
-
NW
public static final StateCode NW
-
RP
public static final StateCode RP
-
SH
public static final StateCode SH
-
SL
public static final StateCode SL
-
SN
public static final StateCode SN
-
ST
public static final StateCode ST
-
TH
public static final StateCode TH
-
WL
public static final StateCode WL
-
BAS
public static final StateCode BAS
-
TESTLAND
public static final StateCode TESTLAND
-
-
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 nameNullPointerException
- if the argument is null
-
fromString
public static StateCode fromString(String stateCodeString) throws PseudonymisationException
Liefert den EnumType zu dem entsprechenden String. z.B. den String "BE" oder "Berlin" in den Typen StatCode.BE.- Parameters:
stateCodeString
-String
mit dem Wert- Returns:
StateCode
des Bundeslandes- Throws:
PseudonymisationException
- falls Wert invalid.
-
fromKVRegion
public static StateCode fromKVRegion(Integer stateCodeInteger) throws PseudonymisationException
Wandelt die KV-Region-Nurmmer des Bundeslandes in den Aufzählungtypen um. z.B. den String 72 in StatCode.BE.- Parameters:
stateCodeInteger
-Integer
KV-Reginons-Wert.- Returns:
StateCode
des Bundeslandes.- Throws:
PseudonymisationException
- falls Wert invalid.
-
fromXmlId
public static StateCode fromXmlId(Integer stateCodeInteger) throws PseudonymisationException
Wandelt die im XML-Schema definierte Nummer in den Aufzählungtypen um. z.B. den String 11 in StatCode.BE.- Parameters:
stateCodeInteger
-Integer
Die laufende Nummer aus dem XML-Schema- Returns:
StateCode
des Bundeslandes.- Throws:
PseudonymisationException
- falls Wert invalid.
-
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. !!!
-
-