org.opengis.cite.ogcapiprocesses10.util.ExecutionMode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ets-ogcapi-processes10 Show documentation
Show all versions of ets-ogcapi-processes10 Show documentation
Describe purpose of test suite.
/**
*
*/
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