Enum Class OSMLayerEnum

java.lang.Object
java.lang.Enum<OSMLayerEnum>
org.ka2ddo.yaac.osm.OSMLayerEnum
All Implemented Interfaces:
Serializable, Comparable<OSMLayerEnum>, Constable

public enum OSMLayerEnum extends Enum<OSMLayerEnum>
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
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static OSMLayerEnum[] 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

      public static OSMLayerEnum valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValueClass

      public final Class<?> 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

      public final Constructor<?> getValueClassConstructorOneArg()
      Get the reflection Constructor for a value of this enum that will convert a Float into the appropriate value object.
      Returns:
      Constructor
    • nonClonedValues

      public static OSMLayerEnum[] 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