Enum Class Geometry.TypeEnum

java.lang.Object
java.lang.Enum<Geometry.TypeEnum>
org.bremersee.geojson.model.Geometry.TypeEnum
All Implemented Interfaces:
Serializable, Comparable<Geometry.TypeEnum>, Constable
Enclosing class:
Geometry

public static enum Geometry.TypeEnum extends Enum<Geometry.TypeEnum>
The geometry type.
  • Enum Constant Details

    • POINT

      public static final Geometry.TypeEnum POINT
      Point type enum.
    • MULTIPOINT

      public static final Geometry.TypeEnum MULTIPOINT
      Multipoint type enum.
    • LINESTRING

      public static final Geometry.TypeEnum LINESTRING
      Linestring type enum.
    • MULTILINESTRING

      public static final Geometry.TypeEnum MULTILINESTRING
      Multilinestring type enum.
    • POLYGON

      public static final Geometry.TypeEnum POLYGON
      Polygon type enum.
    • MULTIPOLYGON

      public static final Geometry.TypeEnum MULTIPOLYGON
      Multipolygon type enum.
    • GEOMETRYCOLLECTION

      public static final Geometry.TypeEnum GEOMETRYCOLLECTION
      Geometrycollection type enum.
  • Method Details

    • values

      public static Geometry.TypeEnum[] 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 Geometry.TypeEnum 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Geometry.TypeEnum>
    • fromGeometryType

      public static Geometry.TypeEnum fromGeometryType(String geometryType)
      From value type enum.
      Parameters:
      geometryType - the geometry type
      Returns:
      the type enum