Enum Class LatLonFormat

java.lang.Object
java.lang.Enum<LatLonFormat>
gov.nasa.gsfc.sscweb.schema.LatLonFormat
All Implemented Interfaces:
Serializable, Comparable<LatLonFormat>, Constable

public enum LatLonFormat extends Enum<LatLonFormat>
Latitude/Longitude format enumeration. <p>Java class for LatLonFormat</p>. <p>The following schema fragment specifies the expected content contained within this class.</p> <pre>{@code <simpleType name="LatLonFormat"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="Lat90Lon360"/> <enumeration value="Lat90Lon180"/> <enumeration value="Lat90SnLon180We"/> </restriction> </simpleType> }</pre>
  • Enum Constant Details

    • LAT_90_LON_360

      public static final LatLonFormat LAT_90_LON_360
      Latitude (-90,+90), Longitude (0, 360)
    • LAT_90_LON_180

      public static final LatLonFormat LAT_90_LON_180
      Latitude (-90,+90), Longitude (-180,+180)
    • LAT_90_SN_LON_180_WE

      public static final LatLonFormat LAT_90_SN_LON_180_WE
      Latitude (90S,90N), Longitude (180W,180E)
  • Field Details

    • value

      private final String value
  • Constructor Details

    • LatLonFormat

      private LatLonFormat(String v)
  • Method Details

    • values

      public static LatLonFormat[] 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 LatLonFormat 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
    • value

      public String value()
      Gets the value associated to the enum constant.
      Returns:
      The value linked to the enum.
    • fromValue

      public static LatLonFormat fromValue(String v)
      Gets the enum associated to the value passed as parameter.
      Parameters:
      v - The value to get the enum from.
      Returns:
      The enum which corresponds to the value, if it exists.
      Throws:
      IllegalArgumentException - If no value matches in the enum declaration.