Package org.ka2ddo.yaac.osm
Enum Class OSMLayerEnum
- All Implemented Interfaces:
Serializable
,Comparable<OSMLayerEnum>
,Constable
This enum identifies the information that will be stored in *.nodes and *.ways
files by the OsmXmlSegmenter for use by OSMLayer. Note that the flag enum value
has been removed to save storage, and another (non-persisted) value put in
its place to keep the persisted values' ordinals stable.
- Author:
- Andrew Pavlin, KA2DDO
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Ordinal index for administrative level number value inGenericTaggedNode
.static final int
Ordinal index for ICAO airport identification String inGenericTaggedNode
.static final int
Ordinal index forAmenityType
value inGenericTaggedNode
.static final int
Ordinal index for amenity type name String inGenericTaggedNode
.static final int
Ordinal index forBarrier
.static final int
Ordinal index forBorderType
value inGenericTaggedNode
.static final int
Ordinal index forOSMColour
value inGenericTaggedNode
.static final int
Ordinal index for elevation value inGenericTaggedNode
.final Enum[]
Ordered set of enumeration constants if the valueClass is a single specific subclass of java.lang.Enum.static final int
Ordinal index for extra AmenityType list.static final int
Ordinal index for extended flags value inGenericTaggedNode
.static final int
Ordinal index for hazardous materials restriction String inGenericTaggedNode
.static final int
Ordinal index for highway identifier String inGenericTaggedNode
.static final int
Ordinal index for OSM ID number for another Way which this Way punches a hole through.static final int
Ordinal index forLandUse
value inGenericTaggedNode
.static final int
Ordinal index for lane count numeric value inGenericTaggedNode
.static final int
Ordinal index for layer number value inGenericTaggedNode
.static final int
Ordinal index forLeisure
value inGenericTaggedNode
.static final int
Ordinal index forMan_Made
value inGenericTaggedNode
.static final int
Ordinal index for maximum height value inGenericTaggedNode
.static final int
Ordinal index forSpeed
value inGenericTaggedNode
.static final int
Ordinal index for maximum weight value inGenericTaggedNode
.static final int
Ordinal index for English translation of name String inGenericTaggedNode
if the original name was not in English.static final int
Ordinal index for name String inGenericTaggedNode
.static final int
Ordinal index forNatural
value inGenericTaggedNode
.static final int
The element count of theGenericTaggedNode decodedtagArray
.static final int
Ordinal index forPlace
value inGenericTaggedNode
.static final int
Ordinal index for Religion value inGenericTaggedNode
.final int
Specify whether this attribute provides useful information at render time.static final int
Ordinal index forSeamarkType
value inGenericTaggedNode
.static final int
Ordinal index forRelation type
String value inGenericTaggedNode
.final Class<?>
Class of the data type of values of this enumeration.final boolean
Flags whether the value class for entries of this enumeration key is an implementor of QuantityUnitMeasure.final int
Value type associated with the enum.static final int
Ordinal index forWayType
value inGenericTaggedNode
.static final int
Ordinal index for width value inGenericTaggedNode
. -
Method Summary
Modifier and TypeMethodDescriptionfinal int
Report whether this attribute provides useful information at render time.final Class<?>
Class of the data type of values of this enumeration.final Constructor<?>
Get the reflection Constructor for a value of this enum that will convert a Float into the appropriate value object.final int
Get the value type associated with the enum.final boolean
Report whether attribute has a quantity unit of measure.static OSMLayerEnum[]
Get the original array of enum values for the OSMLayerEnum enumeration (not wasting memory or CPU on making a copy).static OSMLayerEnum
Returns the enum constant of this class with the specified name.static OSMLayerEnum[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
religion
-
wayType
-
name
-
amenityTypeName
-
highwayName
-
maxweight
-
name_en
-
maxheight
-
hazmat
-
airportId
-
layer
-
adminlevel
-
maxspeed
-
man_made2
-
leisure
-
width
-
border_type2
-
natural2
-
landuse2
-
amenityType
-
type
-
lanes
-
place
-
seamarkType
-
color
-
ele
-
hole
-
barrier
-
-
Field Details
-
RELIGION_ORDINAL
public static final int RELIGION_ORDINALOrdinal index for Religion value inGenericTaggedNode
.- See Also:
-
WAYTYPE_ORDINAL
public static final int WAYTYPE_ORDINALOrdinal index forWayType
value inGenericTaggedNode
.- See Also:
-
NAME_ORDINAL
public static final int NAME_ORDINALOrdinal index for name String inGenericTaggedNode
.- See Also:
-
AMENITYTYPENAME_ORDINAL
public static final int AMENITYTYPENAME_ORDINALOrdinal index for amenity type name String inGenericTaggedNode
.- See Also:
-
HIGHWAYNAME_ORDINAL
public static final int HIGHWAYNAME_ORDINALOrdinal index for highway identifier String inGenericTaggedNode
.- See Also:
-
MAXWEIGHT_ORDINAL
public static final int MAXWEIGHT_ORDINALOrdinal index for maximum weight value inGenericTaggedNode
.- See Also:
-
NAME_EN_ORDINAL
public static final int NAME_EN_ORDINALOrdinal index for English translation of name String inGenericTaggedNode
if the original name was not in English.- See Also:
-
MAXHEIGHT_ORDINAL
public static final int MAXHEIGHT_ORDINALOrdinal index for maximum height value inGenericTaggedNode
.- See Also:
-
HAZMAT_ORDINAL
public static final int HAZMAT_ORDINALOrdinal index for hazardous materials restriction String inGenericTaggedNode
.- See Also:
-
AIRPORTID_ORDINAL
public static final int AIRPORTID_ORDINALOrdinal index for ICAO airport identification String inGenericTaggedNode
.- See Also:
-
LAYER_ORDINAL
public static final int LAYER_ORDINALOrdinal index for layer number value inGenericTaggedNode
.- See Also:
-
ADMINLEVEL_ORDINAL
public static final int ADMINLEVEL_ORDINALOrdinal index for administrative level number value inGenericTaggedNode
.- See Also:
-
MAXSPEED_ORDINAL
public static final int MAXSPEED_ORDINALOrdinal index forSpeed
value inGenericTaggedNode
.- See Also:
-
MAN_MADE2_ORDINAL
public static final int MAN_MADE2_ORDINALOrdinal index forMan_Made
value inGenericTaggedNode
.- See Also:
-
LEISURE_ORDINAL
public static final int LEISURE_ORDINALOrdinal index forLeisure
value inGenericTaggedNode
.- See Also:
-
WIDTH_ORDINAL
public static final int WIDTH_ORDINALOrdinal index for width value inGenericTaggedNode
.- See Also:
-
BORDER_TYPE2_ORDINAL
public static final int BORDER_TYPE2_ORDINALOrdinal index forBorderType
value inGenericTaggedNode
.- See Also:
-
NATURAL2_ORDINAL
public static final int NATURAL2_ORDINALOrdinal index forNatural
value inGenericTaggedNode
.- See Also:
-
LANDUSE2_ORDINAL
public static final int LANDUSE2_ORDINALOrdinal index forLandUse
value inGenericTaggedNode
.- See Also:
-
AMENITYTYPE_ORDINAL
public static final int AMENITYTYPE_ORDINALOrdinal index forAmenityType
value inGenericTaggedNode
. If this is non-null, theAMENITYTYPENAME_ORDINAL
array element will be null.- See Also:
-
TYPE_ORDINAL
public static final int TYPE_ORDINALOrdinal index forRelation type
String value inGenericTaggedNode
.- See Also:
-
LANES_ORDINAL
public static final int LANES_ORDINALOrdinal index for lane count numeric value inGenericTaggedNode
.- See Also:
-
PLACE_ORDINAL
public static final int PLACE_ORDINALOrdinal index forPlace
value inGenericTaggedNode
.- See Also:
-
SEAMARKTYPE_ORDINAL
public static final int SEAMARKTYPE_ORDINALOrdinal index forSeamarkType
value inGenericTaggedNode
.- See Also:
-
COLOR_ORDINAL
public static final int COLOR_ORDINALOrdinal index forOSMColour
value inGenericTaggedNode
.- See Also:
-
ELE_ORDINAL
public static final int ELE_ORDINALOrdinal index for elevation value inGenericTaggedNode
.- See Also:
-
HOLE_ORDINAL
public static final int HOLE_ORDINALOrdinal index for OSM ID number for another Way which this Way punches a hole through.- See Also:
-
BARRIER_ORDINAL
public static final int BARRIER_ORDINALOrdinal index forBarrier
.- See Also:
-
FLAGS2_SEMIORDINAL
public static final int FLAGS2_SEMIORDINALOrdinal index for extended flags value inGenericTaggedNode
. -
EXTRA_AMEMITY_SEMIORDINAL
public static final int EXTRA_AMEMITY_SEMIORDINALOrdinal index for extra AmenityType list. -
valueClass
Class of the data type of values of this enumeration. -
enumConstants
Ordered set of enumeration constants if the valueClass is a single specific subclass of java.lang.Enum. -
valueQuantityUnitMeasure
public final boolean valueQuantityUnitMeasureFlags whether the value class for entries of this enumeration key is an implementor of QuantityUnitMeasure.- See Also:
-
valueType
public final int valueTypeValue type associated with the enum.- See Also:
-
GenericTaggedNode.BYTE
GenericTaggedNode.ENUM
GenericTaggedNode.FLOAT
GenericTaggedNode.OBJECT
GenericTaggedNode.STRING
GenericTaggedNode.WAYTYPE
-
renderLevel
public final int renderLevelSpecify whether this attribute provides useful information at render time.- See Also:
-
RENDERLEVEL_NO
RENDERLEVEL_NONSELECT
RENDERLEVEL_SELECT
-
ORDINAL_MAX
public static final int ORDINAL_MAXThe element count of theGenericTaggedNode decodedtagArray
.
-
-
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
-
getValueClass
Class of the data type of values of this enumeration.- Returns:
- Class of the data type
-
getValueType
public final int getValueType()Get the value type associated with the enum.- Returns:
- value type as defined by int constants in GenericTaggedNode class
- See Also:
-
GenericTaggedNode.BYTE
GenericTaggedNode.ENUM
GenericTaggedNode.FLOAT
GenericTaggedNode.OBJECT
GenericTaggedNode.STRING
GenericTaggedNode.WAYTYPE
-
getRenderLevel
public final int getRenderLevel()Report whether this attribute provides useful information at render time.- Returns:
- render level code for this attribute
- See Also:
-
RENDERLEVEL_NO
RENDERLEVEL_NONSELECT
RENDERLEVEL_SELECT
-
isValueQuantityUnitMeasure
public final boolean isValueQuantityUnitMeasure()Report whether attribute has a quantity unit of measure.- Returns:
- boolean
-
getValueClassConstructorOneArg
Get the reflection Constructor for a value of this enum that will convert a Float into the appropriate value object.- Returns:
- Constructor
-
nonClonedValues
Get the original array of enum values for the OSMLayerEnum enumeration (not wasting memory or CPU on making a copy).- Returns:
- array of OSMLayerEnum constants
-