/*
 * SDK Pullenti Unitext, version 4.33, fabruary 2026. Copyright (c) 2013-2026, Pullenti. All rights reserved. 
 * Non-Commercial Freeware and Commercial Software. 
 * This class is generated using the converter UniSharping (www.unisharping.ru) from Pullenti C# project. 
 * The latest version of the code is available on the site www.pullenti.ru
 */

const Hashtable = require("./../../../unisharp/Hashtable");

class CorrFootnoteTyps {

    constructor(val, str) {
        this.m_val = val;
        this.m_str = str;
    }
    toString() {
        return this.m_str;
    }
    value() {
        return this.m_val;
    }
    static of(val) {
        if(val instanceof CorrFootnoteTyps) 
            return val;
        if(typeof val === 'string' || val instanceof String) {
            val = val.toUpperCase();
            if(CorrFootnoteTyps.mapStringToEnum.containsKey(val))
                return CorrFootnoteTyps.mapStringToEnum.get(val);
            return null;
        }
        if(CorrFootnoteTyps.mapIntToEnum.containsKey(val))
            return CorrFootnoteTyps.mapIntToEnum.get(val);
        let it = new CorrFootnoteTyps(val, val.toString());
        CorrFootnoteTyps.mapIntToEnum.put(val, it);
        CorrFootnoteTyps.mapStringToEnum.put(val.toString(), it);
        return it;
    }
    static isDefined(val) {
        return CorrFootnoteTyps.m_Keys.indexOf(val) >= 0;
    }
    static getValues() {
        return CorrFootnoteTyps.m_Values;
    }
    static static_constructor() {
        CorrFootnoteTyps.mapIntToEnum = new Hashtable();
        CorrFootnoteTyps.mapStringToEnum = new Hashtable();
        CorrFootnoteTyps.DIGIT = new CorrFootnoteTyps(0, "DIGIT");
        CorrFootnoteTyps.mapIntToEnum.put(CorrFootnoteTyps.DIGIT.value(), CorrFootnoteTyps.DIGIT); 
        CorrFootnoteTyps.mapStringToEnum.put(CorrFootnoteTyps.DIGIT.m_str.toUpperCase(), CorrFootnoteTyps.DIGIT); 
        CorrFootnoteTyps.STARS = new CorrFootnoteTyps(1, "STARS");
        CorrFootnoteTyps.mapIntToEnum.put(CorrFootnoteTyps.STARS.value(), CorrFootnoteTyps.STARS); 
        CorrFootnoteTyps.mapStringToEnum.put(CorrFootnoteTyps.STARS.m_str.toUpperCase(), CorrFootnoteTyps.STARS); 
        CorrFootnoteTyps.SUPDIGIT = new CorrFootnoteTyps(2, "SUPDIGIT");
        CorrFootnoteTyps.mapIntToEnum.put(CorrFootnoteTyps.SUPDIGIT.value(), CorrFootnoteTyps.SUPDIGIT); 
        CorrFootnoteTyps.mapStringToEnum.put(CorrFootnoteTyps.SUPDIGIT.m_str.toUpperCase(), CorrFootnoteTyps.SUPDIGIT); 
        CorrFootnoteTyps.VERYDOUBT = new CorrFootnoteTyps(3, "VERYDOUBT");
        CorrFootnoteTyps.mapIntToEnum.put(CorrFootnoteTyps.VERYDOUBT.value(), CorrFootnoteTyps.VERYDOUBT); 
        CorrFootnoteTyps.mapStringToEnum.put(CorrFootnoteTyps.VERYDOUBT.m_str.toUpperCase(), CorrFootnoteTyps.VERYDOUBT); 
        CorrFootnoteTyps.m_Values = Array.from(CorrFootnoteTyps.mapIntToEnum.values);
        CorrFootnoteTyps.m_Keys = Array.from(CorrFootnoteTyps.mapIntToEnum.keys);
    }
}


CorrFootnoteTyps.static_constructor();

module.exports = CorrFootnoteTyps