/*
 * SDK Pullenti Lingvo, 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#.NET project. 
 * The latest version of the code is available on the site www.pullenti.ru
 */


class CanonicDecreeRefUri {
    
    constructor(txt) {
        this.ref = null;
        this.beginChar = 0;
        this.endChar = 0;
        this.isDiap = false;
        this.isAdopted = false;
        this.typeWithGeo = null;
        this.text = null;
        this.text = txt;
    }
    
    toString() {
        return (this.text === null ? "?" : this.text.substring(this.beginChar, this.beginChar + (this.endChar + 1) - this.beginChar));
    }
    
    static _new1112(_arg1, _arg2, _arg3, _arg4) {
        let res = new CanonicDecreeRefUri(_arg1);
        res.ref = _arg2;
        res.beginChar = _arg3;
        res.endChar = _arg4;
        return res;
    }
    
    static _new1114(_arg1, _arg2, _arg3, _arg4, _arg5) {
        let res = new CanonicDecreeRefUri(_arg1);
        res.ref = _arg2;
        res.beginChar = _arg3;
        res.endChar = _arg4;
        res.isDiap = _arg5;
        return res;
    }
}


module.exports = CanonicDecreeRefUri