Enum CrossingWays.WayType
- java.lang.Object
-
- java.lang.Enum<CrossingWays.WayType>
-
- org.openstreetmap.josm.data.validation.tests.CrossingWays.WayType
-
- All Implemented Interfaces:
Serializable
,Comparable<CrossingWays.WayType>
- Enclosing class:
- CrossingWays
private static enum CrossingWays.WayType extends Enum<CrossingWays.WayType>
Type of way. Entries have to be declared in alphabetical order, see sort below.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
WayType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static CrossingWays.WayType
of(Way w)
static CrossingWays.WayType
valueOf(String name)
Returns the enum constant of this type with the specified name.static CrossingWays.WayType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BARRIER
public static final CrossingWays.WayType BARRIER
-
BUILDING
public static final CrossingWays.WayType BUILDING
-
HIGHWAY
public static final CrossingWays.WayType HIGHWAY
-
RAILWAY
public static final CrossingWays.WayType RAILWAY
-
RESIDENTIAL_AREA
public static final CrossingWays.WayType RESIDENTIAL_AREA
-
WATERWAY
public static final CrossingWays.WayType WATERWAY
-
WAY
public static final CrossingWays.WayType WAY
-
-
Constructor Detail
-
WayType
private WayType()
-
-
Method Detail
-
values
public static CrossingWays.WayType[] 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 (CrossingWays.WayType c : CrossingWays.WayType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CrossingWays.WayType 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
-
of
static CrossingWays.WayType of(Way w)
-
-