Package uk.org.siri.siri21
Enum CountedFeatureUnitEnumeration
- java.lang.Object
-
- java.lang.Enum<CountedFeatureUnitEnumeration>
-
- uk.org.siri.siri21.CountedFeatureUnitEnumeration
-
- All Implemented Interfaces:
Serializable,Comparable<CountedFeatureUnitEnumeration>
public enum CountedFeatureUnitEnumeration extends Enum<CountedFeatureUnitEnumeration>
Java class for CountedFeatureUnitEnumeration.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="CountedFeatureUnitEnumeration"> <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"> <enumeration value="bays"/> <enumeration value="seats"/> <enumeration value="otherSpaces"/> <enumeration value="devices"/> <enumeration value="vehicles"/> <enumeration value="persons"/> <enumeration value="litres"/> <enumeration value="squareMeters"/> <enumeration value="cubicMeters"/> <enumeration value="meters"/> <enumeration value="kWh"/> <enumeration value="kW"/> <enumeration value="kg"/> <enumeration value="A"/> <enumeration value="C"/> <enumeration value="other"/> </restriction> </simpleType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CountedFeatureUnitEnumerationfromValue(String v)Stringvalue()static CountedFeatureUnitEnumerationvalueOf(String name)Returns the enum constant of this type with the specified name.static CountedFeatureUnitEnumeration[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BAYS
public static final CountedFeatureUnitEnumeration BAYS
-
SEATS
public static final CountedFeatureUnitEnumeration SEATS
-
OTHER_SPACES
public static final CountedFeatureUnitEnumeration OTHER_SPACES
-
DEVICES
public static final CountedFeatureUnitEnumeration DEVICES
-
VEHICLES
public static final CountedFeatureUnitEnumeration VEHICLES
-
PERSONS
public static final CountedFeatureUnitEnumeration PERSONS
-
LITRES
public static final CountedFeatureUnitEnumeration LITRES
-
SQUARE_METERS
public static final CountedFeatureUnitEnumeration SQUARE_METERS
-
CUBIC_METERS
public static final CountedFeatureUnitEnumeration CUBIC_METERS
-
METERS
public static final CountedFeatureUnitEnumeration METERS
-
K_WH
public static final CountedFeatureUnitEnumeration K_WH
-
K_W
public static final CountedFeatureUnitEnumeration K_W
-
KG
public static final CountedFeatureUnitEnumeration KG
-
A
public static final CountedFeatureUnitEnumeration A
-
C
public static final CountedFeatureUnitEnumeration C
-
OTHER
public static final CountedFeatureUnitEnumeration OTHER
-
-
Method Detail
-
values
public static CountedFeatureUnitEnumeration[] 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 (CountedFeatureUnitEnumeration c : CountedFeatureUnitEnumeration.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CountedFeatureUnitEnumeration 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
-
value
public String value()
-
fromValue
public static CountedFeatureUnitEnumeration fromValue(String v)
-
-