Package de.kappich.pat.gnd.rnPlugin
Enum Class RnFormat
- All Implemented Interfaces:
PropertyValue
,Serializable
,Comparable<RnFormat>
,Constable
RnFormat
ist eine Enumeration aller möglichen Formate der Routennummernformaten. Die einzelnen Werte besiztzen eine eindeutige
Ordinalzahl.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic RnFormat
getFormat
(int ordinal) Gibt dasStatFormat
-Objekt zu der übergebenen Ordinalzahl zurück, bzw.int
Gibt die Ordinalzahl desStatFormat
-Objekts zurück.void
putPreferences
(Preferences prefs) Diese Methode schreibt einen Wert der implentierenden Klasse unter dem Schlüssel "PROPERTY_VALUE"(verplichtend) weg.toString()
static RnFormat
Returns the enum constant of this class with the specified name.static RnFormat[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RN_SMALL
-
RN_BIG
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getFormat
Gibt dasStatFormat
-Objekt zu der übergebenen Ordinalzahl zurück, bzw.null
, wenn kein solches Objekt existiert.- Parameters:
ordinal
- die Ordinalzahl- Returns:
- das Objekt
-
putPreferences
Description copied from interface:PropertyValue
Diese Methode schreibt einen Wert der implentierenden Klasse unter dem Schlüssel "PROPERTY_VALUE"(verplichtend) weg.- Specified by:
putPreferences
in interfacePropertyValue
- Parameters:
prefs
- die Preferences
-
getOrdinal
public int getOrdinal()Gibt die Ordinalzahl desStatFormat
-Objekts zurück.- Returns:
- die Ordinalzahl
-
toString
-