/*
 * 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");

/**
 * Тип вывода сносок при генерации HTML
 */
class GetHtmlParamFootnoteOutType {

    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 GetHtmlParamFootnoteOutType) 
            return val;
        if(typeof val === 'string' || val instanceof String) {
            val = val.toUpperCase();
            if(GetHtmlParamFootnoteOutType.mapStringToEnum.containsKey(val))
                return GetHtmlParamFootnoteOutType.mapStringToEnum.get(val);
            return null;
        }
        if(GetHtmlParamFootnoteOutType.mapIntToEnum.containsKey(val))
            return GetHtmlParamFootnoteOutType.mapIntToEnum.get(val);
        let it = new GetHtmlParamFootnoteOutType(val, val.toString());
        GetHtmlParamFootnoteOutType.mapIntToEnum.put(val, it);
        GetHtmlParamFootnoteOutType.mapStringToEnum.put(val.toString(), it);
        return it;
    }
    static isDefined(val) {
        return GetHtmlParamFootnoteOutType.m_Keys.indexOf(val) >= 0;
    }
    static getValues() {
        return GetHtmlParamFootnoteOutType.m_Values;
    }
    static static_constructor() {
        GetHtmlParamFootnoteOutType.mapIntToEnum = new Hashtable();
        GetHtmlParamFootnoteOutType.mapStringToEnum = new Hashtable();
        GetHtmlParamFootnoteOutType.ASHINT = new GetHtmlParamFootnoteOutType(0, "ASHINT");
        GetHtmlParamFootnoteOutType.mapIntToEnum.put(GetHtmlParamFootnoteOutType.ASHINT.value(), GetHtmlParamFootnoteOutType.ASHINT); 
        GetHtmlParamFootnoteOutType.mapStringToEnum.put(GetHtmlParamFootnoteOutType.ASHINT.m_str.toUpperCase(), GetHtmlParamFootnoteOutType.ASHINT); 
        GetHtmlParamFootnoteOutType.INBRACKETS = new GetHtmlParamFootnoteOutType(1, "INBRACKETS");
        GetHtmlParamFootnoteOutType.mapIntToEnum.put(GetHtmlParamFootnoteOutType.INBRACKETS.value(), GetHtmlParamFootnoteOutType.INBRACKETS); 
        GetHtmlParamFootnoteOutType.mapStringToEnum.put(GetHtmlParamFootnoteOutType.INBRACKETS.m_str.toUpperCase(), GetHtmlParamFootnoteOutType.INBRACKETS); 
        GetHtmlParamFootnoteOutType.ENDOFUNIT = new GetHtmlParamFootnoteOutType(2, "ENDOFUNIT");
        GetHtmlParamFootnoteOutType.mapIntToEnum.put(GetHtmlParamFootnoteOutType.ENDOFUNIT.value(), GetHtmlParamFootnoteOutType.ENDOFUNIT); 
        GetHtmlParamFootnoteOutType.mapStringToEnum.put(GetHtmlParamFootnoteOutType.ENDOFUNIT.m_str.toUpperCase(), GetHtmlParamFootnoteOutType.ENDOFUNIT); 
        GetHtmlParamFootnoteOutType.m_Values = Array.from(GetHtmlParamFootnoteOutType.mapIntToEnum.values);
        GetHtmlParamFootnoteOutType.m_Keys = Array.from(GetHtmlParamFootnoteOutType.mapIntToEnum.keys);
    }
}


GetHtmlParamFootnoteOutType.static_constructor();

module.exports = GetHtmlParamFootnoteOutType