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

au.org.consumerdatastandards.support.Extension Maven / Gradle / Ivy

Go to download

This artefact describes the Consumer Data Standards using Java classes and annotations in a way suitable for automatic generation of Open API Specification, documentation, Server Stub, Client Libraries and Reference Test.

There is a newer version: 1.1.1
Show newest version
package au.org.consumerdatastandards.support;

public enum Extension {

    SCOPES("x-scopes"),

    VERSION("x-version"),

    CDS_TYPE("x-cds-type");

    private String key;

    Extension(String key) {
        this.key = key;
    }

    public String getKey() {
        return key;
    }

    public Extension fromKey(String key) {
        for (Extension extension: values()) {
            if (extension.key.equals(key)) {
                return extension;
            }
        }
        return null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy