Package de.kappich.pat.gnd.rnPlugin
Enum RnFormat
- java.lang.Object
-
- java.lang.Enum<RnFormat>
-
- de.kappich.pat.gnd.rnPlugin.RnFormat
-
- All Implemented Interfaces:
PropertyValue,java.io.Serializable,java.lang.Comparable<RnFormat>
public enum RnFormat extends java.lang.Enum<RnFormat> implements PropertyValue
RnFormatist eine Enumeration aller möglichen Formate der Routennummernformaten. Die einzelnen Werte besiztzen eine eindeutige Ordinalzahl.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RnFormatgetFormat(int ordinal)Gibt dasStatFormat-Objekt zu der übergebenen Ordinalzahl zurück, bzw.intgetOrdinal()Gibt die Ordinalzahl desStatFormat-Objekts zurück.voidputPreferences(java.util.prefs.Preferences prefs)Diese Methode schreibt einen Wert der implentierenden Klasse unter dem Schlüssel "PROPERTY_VALUE"(verplichtend) weg.java.lang.StringtoString()static RnFormatvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static RnFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static RnFormat[] 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 (RnFormat c : RnFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RnFormat 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 namejava.lang.NullPointerException- if the argument is null
-
getFormat
@Nullable public static RnFormat getFormat(int ordinal)
Gibt dasStatFormat-Objekt zu der übergebenen Ordinalzahl zurück, bzw.null, wenn kein solches Objekt existiert.- Parameters:
ordinal- die Ordinalzahl- Returns:
- das Objekt
-
putPreferences
public void putPreferences(java.util.prefs.Preferences prefs)
Description copied from interface:PropertyValueDiese Methode schreibt einen Wert der implentierenden Klasse unter dem Schlüssel "PROPERTY_VALUE"(verplichtend) weg.- Specified by:
putPreferencesin interfacePropertyValue- Parameters:
prefs- die Preferences
-
getOrdinal
public int getOrdinal()
Gibt die Ordinalzahl desStatFormat-Objekts zurück.- Returns:
- die Ordinalzahl
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<RnFormat>
-
-