package p.studio.workspaces.assets.metadata;

public enum AssetStudioGlyphMaterialSchemaStatus {
    OK("ok"),
    INCONSISTENT("inconsistent");

    private final String manifestValue;

    AssetStudioGlyphMaterialSchemaStatus(String manifestValue) {
        this.manifestValue = manifestValue;
    }

    public String manifestValue() {
        return manifestValue;
    }

    public static AssetStudioGlyphMaterialSchemaStatus fromManifestValue(String value) {
        if (value == null) {
            return null;
        }
        for (AssetStudioGlyphMaterialSchemaStatus candidate : values()) {
            if (candidate.manifestValue.equalsIgnoreCase(value.trim())) {
                return candidate;
            }
        }
        return null;
    }
}
