org.apache.camel.component.olingo4.internal.Olingo4ApiName Maven / Gradle / Ivy
/*
* Camel ApiName Enumeration generated by camel-api-component-maven-plugin
* Generated on: Sat Mar 24 18:59:49 UTC 2018
*/
package org.apache.camel.component.olingo4.internal;
import org.apache.camel.util.component.ApiName;
/**
* Camel {@link ApiName} Enumeration for Component Olingo4
*/
public enum Olingo4ApiName implements ApiName {
DEFAULT("");
private static final Olingo4ApiName[] VALUES = values();
private final String name;
private Olingo4ApiName(String name) {
this.name = name;
}
@Override
public String getName() {
return name;
}
public static Olingo4ApiName fromValue(String value) throws IllegalArgumentException {
for (int i = 0; i < VALUES.length; i++) {
if (VALUES[i].name.equals(value)) {
return VALUES[i];
}
}
throw new IllegalArgumentException("Invalid value " + value);
}
}