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

rapture.common.Scheme Maven / Gradle / Ivy

There is a newer version: 3.0.4
Show newest version
package rapture.common;

public enum Scheme {
    SCRIPT(false), BLOB(true), SERIES(true), LOG(false), JOB(false), SNIPPET(false), APPSTATUS(false), JAR(false), TABLE(false), PLUGIN_MANIFEST(false), EVENT(false), NOTIFICATION(false), LOCK(false), SERVER(false), DP_JAVA_INVOCABLE(false), INDEX(false), ENTITLEMENT(true), ENTITLEMENTGROUP(true), SERVERSTATUS(false), DOCUMENT(true), STRUCTURED(true), USER(false), PLUGIN(false), AUTHORITY(false), FIELD(false), WORKFLOW(false), EXCHANGE_DOMAIN(false), WORKORDER(false), IDGEN(false);

    private boolean isPrimitive;

    Scheme() {
        this.isPrimitive = false;
    }

    Scheme(boolean isPrimitive) {
        this.isPrimitive = isPrimitive;
    }

    public boolean isPrimitive() {
        return this.isPrimitive;
    }

    @Override
    public String toString() {
        return this.name().toLowerCase();
    }
    
    public static Scheme getScheme(String name) {
        try {
            return Scheme.valueOf(name);
          } catch (IllegalArgumentException e) {
            return null;
          }
    }
} 








© 2015 - 2025 Weber Informatics LLC | Privacy Policy