RNGSymbol.java 1.08 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.xmp.schema.rng.parser.constants;

/*
 * This class specifies class file version 49.0 but uses Java 6 signatures.  Assumed Java 6.
 */
public enum RNGSymbol {
    pattern,
    length,
    maxLength,
    minLength,
    maxArrayLength,
    minArrayLength,
    arrayLength,
    maxExclusive,
    minExclusive,
    maxInclusive,
    minInclusive,
    constValue,
    noParam,
    INTEGER,
    DOUBLE,
    BOOLEAN,
    DATE,
    grammar,
    ref,
    parentRef,
    start,
    define,
    externalRef,
    include,
    choice,
    interleave,
    group,
    element,
    attribute,
    optional,
    zeroOrMore,
    oneOrMore,
    data,
    param,
    text,
    value,
    name,
    href,
    combine,
    ns,
    DEPRECATED,
    Description,
    Alt,
    Bag,
    Seq,
    schema,
    decoration,
    type,
    NoSymbol;
    

    private RNGSymbol() {
    }

    public static RNGSymbol toSymbol(String str) {
        try {
            return RNGSymbol.valueOf(str);
        }
        catch (Exception ex) {
            return NoSymbol;
        }
    }
}