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

org.jsfr.json.path.SyntaxMode Maven / Gradle / Ivy

The newest version!
package org.jsfr.json.path;

@SuppressWarnings("checkstyle:JavadocVariable")
public enum SyntaxMode {
    LAX, STRICT;


    public static SyntaxMode parse(String input) {
        if (input == null || input.isEmpty()) {
            return null;
        }
        for (SyntaxMode variant : values()) {
            if (variant.name().equalsIgnoreCase(input)) {
                return variant;
            }
        }
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy