Package de.kappich.pat.gnd.kmPlugin
Enum Class KmFormat
- All Implemented Interfaces:
PropertyValue
,Serializable
,Comparable<KmFormat>
,Constable
KmFormat
ist eine Enumeration aller möglichen Formate der Kilometrierungsinformation. 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 KmFormat
getFormat
(int ordinal) Gibt dasKmFormat
-Objekt zu der übergebenen Ordinalzahl zurück, bzw.int
Gibt die Ordinalzahl desKmFormat
-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 KmFormat
Returns the enum constant of this class with the specified name.static KmFormat[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
KM_ONLY
-
RN_AND_KM
-
RN_BN_AND_KM
-
RN_ONLY
-
-
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 dasKmFormat
-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 desKmFormat
-Objekts zurück.- Returns:
- die Ordinalzahl
-
toString
-