Enum Class LayerType

java.lang.Object
java.lang.Enum<LayerType>
com.jbstrap.jbmap.enums.LayerType
All Implemented Interfaces:
Serializable, Comparable<LayerType>, Constable

public enum LayerType extends Enum<LayerType>
Layer types. This class defines the layer type. You have to use it with a DataDescriptor.
Since:
4.0
  • Enum Constant Details

  • Method Details

    • values

      public static LayerType[] 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 LayerType 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
    • fromName

      public static LayerType fromName(String name)
      Gets an enum layer type based on its name.
      Parameters:
      name - Enum layer type name
      Returns:
      A layer type corresponding to the specified name; null if there is no layer type for the specified name
    • getLayerClass

      public Class<? extends Layer<?>> getLayerClass()
      Gets the layer class corresponding to the layer type.
      Returns:
      The layer class corresponding to the layer type