Package org.opengis.cite.ogcapifeatures10.conformance

# Enum Class RequirementClass

java.lang.Object
java.lang.Enum<RequirementClass>
org.opengis.cite.ogcapifeatures10.conformance.RequirementClass

All Implemented Interfaces:
  `Serializable`, `Comparable<RequirementClass>`, `Constable`

public enum RequirementClass extends Enum<RequirementClass>
Encapsulates all known requirement classes.

Author:
  Lyn Goltz

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from class java.lang.Enum

  `Enum.EnumDesc<E extends Enum<E>>`

- ## Enum Constant Summary

  Enum Constants
  Enum Constant
  Description
  `CORE`
  `CRS`
  `GEOJSON`
  `GMLSF0`
  `GMLSF2`
  `HTML`
  `OPENAPI30`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static RequirementClass`
  `byConformanceClass(String conformanceClass)`
  byConformanceClass.
  `String`
  `getMediaTypeFeaturesAndCollections()`
  Getter for the field `mediaTypeFeaturesAndCollections`.
  `String`
  `getMediaTypeOtherResources()`
  Getter for the field `mediaTypeOtherResources`.
  `boolean`
  `hasMediaTypeForFeaturesAndCollections()`
  hasMediaTypeForFeaturesAndCollections.
  `boolean`
  `hasMediaTypeForOtherResources()`
  hasMediaTypeForOtherResources.
  `static RequirementClass`
  `valueOf(String name)`
  Returns the enum constant of this class with the specified name.
  `static RequirementClass[]`
  `values()`
  Returns an array containing the constants of this enum class, in the order they are declared.

  ### Methods inherited from class java.lang.Enum

  `clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

  ### Methods inherited from class java.lang.Object

  `getClass, notify, notifyAll, wait, wait, wait`

- ## Enum Constant Details

  - ### CORE

    public static final RequirementClass CORE

  - ### HTML

    public static final RequirementClass HTML

  - ### GEOJSON

    public static final RequirementClass GEOJSON

  - ### GMLSF0

    public static final RequirementClass GMLSF0

  - ### GMLSF2

    public static final RequirementClass GMLSF2

  - ### OPENAPI30

    public static final RequirementClass OPENAPI30

  - ### CRS

    public static final RequirementClass CRS

- ## Method Details

  - ### values

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

  - ### hasMediaTypeForFeaturesAndCollections

    public boolean hasMediaTypeForFeaturesAndCollections()

    hasMediaTypeForFeaturesAndCollections.

    Returns:
      `true` if the RequirementClass has a media type for features and collections, `true` otherwise

  - ### getMediaTypeFeaturesAndCollections

    public String getMediaTypeFeaturesAndCollections()

    Getter for the field `mediaTypeFeaturesAndCollections`.

    Returns:
      media type for features and collections, `null` if not available

  - ### hasMediaTypeForOtherResources

    public boolean hasMediaTypeForOtherResources()

    hasMediaTypeForOtherResources.

    Returns:
      `true` if the RequirementClass has a media type for other resources, `true` otherwise

  - ### getMediaTypeOtherResources

    public String getMediaTypeOtherResources()

    Getter for the field `mediaTypeOtherResources`.

    Returns:
      media type of other resources, `null` if not available

  - ### byConformanceClass

    public static RequirementClass byConformanceClass(String conformanceClass)

    byConformanceClass.

    Parameters:
      `conformanceClass` - the conformance class of the RequirementClass to return.
    Returns:
      the RequirementClass with the passed conformance class, `null` if RequirementClass exists