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

org.opengis.cite.ogcapiprocesses10.util.ExecutionMode Maven / Gradle / Ivy

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

/**
 * 

* ExecutionMode class. *

* * @author bpr */ public enum ExecutionMode { /** * Synchronous execution mode. */ SYNC("sync"), /** * Asynchronous execution mode. */ ASYNC("async"), /** * Auto execution mode. */ AUTO("auto"); /** *

* Getter for the field stringRepresentation. *

* @return a {@link java.lang.String} object */ private final String stringRepresentation; public final String getStringRepresentation() { return stringRepresentation; } ExecutionMode(String stringRepresentation) { this.stringRepresentation = stringRepresentation; } /** *

* fromString. *

* @param type a {@link java.lang.String} object * @return a {@link org.opengis.cite.ogcapiprocesses10.util.ExecutionMode} object */ public static ExecutionMode fromString(String type) { for (ExecutionMode c : ExecutionMode.values()) { if (c.getStringRepresentation().equalsIgnoreCase(type)) { return c; } } throw new IllegalArgumentException(type); } /** *

* toString. *

* @param type a {@link org.opengis.cite.ogcapiprocesses10.util.ExecutionMode} object * @return a {@link java.lang.String} object */ public static String toString(ExecutionMode type) { return type.stringRepresentation; } /** {@inheritDoc} */ @Override public String toString() { return toString(this); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy