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

org.apache.camel.component.fhir.internal.FhirApiName Maven / Gradle / Ivy

There is a newer version: 4.9.0
Show newest version

/*
 * Camel ApiName Enumeration generated by camel-api-component-maven-plugin
 */
package org.apache.camel.component.fhir.internal;

import org.apache.camel.support.component.ApiName;

/**
 * Camel {@link ApiName} Enumeration for Component Fhir
 */
public enum FhirApiName implements ApiName {

    CAPABILITIES("capabilities"),

    CREATE("create"),

    DELETE("delete"),

    HISTORY("history"),

    LOAD_PAGE("load-page"),

    META("meta"),

    OPERATION("operation"),

    PATCH("patch"),

    READ("read"),

    SEARCH("search"),

    TRANSACTION("transaction"),

    UPDATE("update"),

    VALIDATE("validate");


    private static final FhirApiName[] VALUES = values();
    
    private final String name;

    private FhirApiName(String name) {
        this.name = name;
    }

    @Override
    public String getName() {
        return name;
    }

    public static FhirApiName 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);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy