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

/**
 * Defines the possible values to be used for the <see cref="ZipEntry.DateTime"/>.
 */
class ZipEntryFactoryTimeSetting {

    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 ZipEntryFactoryTimeSetting) 
            return val;
        if(typeof val === 'string' || val instanceof String) {
            val = val.toUpperCase();
            if(ZipEntryFactoryTimeSetting.mapStringToEnum.containsKey(val))
                return ZipEntryFactoryTimeSetting.mapStringToEnum.get(val);
            return null;
        }
        if(ZipEntryFactoryTimeSetting.mapIntToEnum.containsKey(val))
            return ZipEntryFactoryTimeSetting.mapIntToEnum.get(val);
        let it = new ZipEntryFactoryTimeSetting(val, val.toString());
        ZipEntryFactoryTimeSetting.mapIntToEnum.put(val, it);
        ZipEntryFactoryTimeSetting.mapStringToEnum.put(val.toString(), it);
        return it;
    }
    static isDefined(val) {
        return ZipEntryFactoryTimeSetting.m_Keys.indexOf(val) >= 0;
    }
    static getValues() {
        return ZipEntryFactoryTimeSetting.m_Values;
    }
    static static_constructor() {
        ZipEntryFactoryTimeSetting.mapIntToEnum = new Hashtable();
        ZipEntryFactoryTimeSetting.mapStringToEnum = new Hashtable();
        ZipEntryFactoryTimeSetting.LASTWRITETIME = new ZipEntryFactoryTimeSetting(0, "LASTWRITETIME");
        ZipEntryFactoryTimeSetting.mapIntToEnum.put(ZipEntryFactoryTimeSetting.LASTWRITETIME.value(), ZipEntryFactoryTimeSetting.LASTWRITETIME); 
        ZipEntryFactoryTimeSetting.mapStringToEnum.put(ZipEntryFactoryTimeSetting.LASTWRITETIME.m_str.toUpperCase(), ZipEntryFactoryTimeSetting.LASTWRITETIME); 
        ZipEntryFactoryTimeSetting.LASTWRITETIMEUTC = new ZipEntryFactoryTimeSetting(1, "LASTWRITETIMEUTC");
        ZipEntryFactoryTimeSetting.mapIntToEnum.put(ZipEntryFactoryTimeSetting.LASTWRITETIMEUTC.value(), ZipEntryFactoryTimeSetting.LASTWRITETIMEUTC); 
        ZipEntryFactoryTimeSetting.mapStringToEnum.put(ZipEntryFactoryTimeSetting.LASTWRITETIMEUTC.m_str.toUpperCase(), ZipEntryFactoryTimeSetting.LASTWRITETIMEUTC); 
        ZipEntryFactoryTimeSetting.CREATETIME = new ZipEntryFactoryTimeSetting(2, "CREATETIME");
        ZipEntryFactoryTimeSetting.mapIntToEnum.put(ZipEntryFactoryTimeSetting.CREATETIME.value(), ZipEntryFactoryTimeSetting.CREATETIME); 
        ZipEntryFactoryTimeSetting.mapStringToEnum.put(ZipEntryFactoryTimeSetting.CREATETIME.m_str.toUpperCase(), ZipEntryFactoryTimeSetting.CREATETIME); 
        ZipEntryFactoryTimeSetting.CREATETIMEUTC = new ZipEntryFactoryTimeSetting(3, "CREATETIMEUTC");
        ZipEntryFactoryTimeSetting.mapIntToEnum.put(ZipEntryFactoryTimeSetting.CREATETIMEUTC.value(), ZipEntryFactoryTimeSetting.CREATETIMEUTC); 
        ZipEntryFactoryTimeSetting.mapStringToEnum.put(ZipEntryFactoryTimeSetting.CREATETIMEUTC.m_str.toUpperCase(), ZipEntryFactoryTimeSetting.CREATETIMEUTC); 
        ZipEntryFactoryTimeSetting.LASTACCESSTIME = new ZipEntryFactoryTimeSetting(4, "LASTACCESSTIME");
        ZipEntryFactoryTimeSetting.mapIntToEnum.put(ZipEntryFactoryTimeSetting.LASTACCESSTIME.value(), ZipEntryFactoryTimeSetting.LASTACCESSTIME); 
        ZipEntryFactoryTimeSetting.mapStringToEnum.put(ZipEntryFactoryTimeSetting.LASTACCESSTIME.m_str.toUpperCase(), ZipEntryFactoryTimeSetting.LASTACCESSTIME); 
        ZipEntryFactoryTimeSetting.LASTACCESSTIMEUTC = new ZipEntryFactoryTimeSetting(5, "LASTACCESSTIMEUTC");
        ZipEntryFactoryTimeSetting.mapIntToEnum.put(ZipEntryFactoryTimeSetting.LASTACCESSTIMEUTC.value(), ZipEntryFactoryTimeSetting.LASTACCESSTIMEUTC); 
        ZipEntryFactoryTimeSetting.mapStringToEnum.put(ZipEntryFactoryTimeSetting.LASTACCESSTIMEUTC.m_str.toUpperCase(), ZipEntryFactoryTimeSetting.LASTACCESSTIMEUTC); 
        ZipEntryFactoryTimeSetting.FIXED = new ZipEntryFactoryTimeSetting(6, "FIXED");
        ZipEntryFactoryTimeSetting.mapIntToEnum.put(ZipEntryFactoryTimeSetting.FIXED.value(), ZipEntryFactoryTimeSetting.FIXED); 
        ZipEntryFactoryTimeSetting.mapStringToEnum.put(ZipEntryFactoryTimeSetting.FIXED.m_str.toUpperCase(), ZipEntryFactoryTimeSetting.FIXED); 
        ZipEntryFactoryTimeSetting.m_Values = Array.from(ZipEntryFactoryTimeSetting.mapIntToEnum.values);
        ZipEntryFactoryTimeSetting.m_Keys = Array.from(ZipEntryFactoryTimeSetting.mapIntToEnum.keys);
    }
}


ZipEntryFactoryTimeSetting.static_constructor();

module.exports = ZipEntryFactoryTimeSetting