All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opengis.cite.ogcapiprocesses10.conformance.RequirementClass Maven / Gradle / Ivy

There is a newer version: 1.2
Show newest version
package org.opengis.cite.ogcapiprocesses10.conformance;

/**
 *
 *
 * Encapsulates all known requirement classes.
 *
 * @author Lyn Goltz 
 */
public enum RequirementClass {

	CORE("http://www.opengis.net/spec/ogcapi-processes-1/1.0/conf/core");

	private final String conformanceClass;

	private final String mediaTypeFeaturesAndCollections;

	private final String mediaTypeOtherResources;

	RequirementClass(String conformanceClass) {
		this(conformanceClass, null, null);
	}

	RequirementClass(String conformanceClass, String mediaTypeFeaturesAndCollections, String mediaTypeOtherResources) {
		this.conformanceClass = conformanceClass;
		this.mediaTypeFeaturesAndCollections = mediaTypeFeaturesAndCollections;
		this.mediaTypeOtherResources = mediaTypeOtherResources;
	}

	/**
	 * 

* hasMediaTypeForFeaturesAndCollections. *

* @return true if the RequirementClass has a media type for features and * collections, true otherwise */ public boolean hasMediaTypeForFeaturesAndCollections() { return mediaTypeFeaturesAndCollections != null; } /** *

* Getter for the field mediaTypeFeaturesAndCollections. *

* @return media type for features and collections, null if not available */ public String getMediaTypeFeaturesAndCollections() { return mediaTypeFeaturesAndCollections; } /** *

* hasMediaTypeForOtherResources. *

* @return true if the RequirementClass has a media type for other * resources, true otherwise */ public boolean hasMediaTypeForOtherResources() { return mediaTypeOtherResources != null; } /** *

* Getter for the field mediaTypeOtherResources. *

* @return media type of other resources, null if not available */ public String getMediaTypeOtherResources() { return mediaTypeOtherResources; } /** *

* byConformanceClass. *

* @param conformanceClass the conformance class of the RequirementClass to return. * @return the RequirementClass with the passed conformance class, null * if RequirementClass exists */ public static RequirementClass byConformanceClass(String conformanceClass) { for (RequirementClass requirementClass : values()) { if (requirementClass.conformanceClass.equals(conformanceClass)) return requirementClass; } return null; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy