/*
 * 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
 */

package com.pullenti.unitext.internal.word;

public class Sprm {

    public short getispmd() {
        return (short)(((Short.toUnsignedInt(sprm)) & 0x1FF));
    }


    public boolean getfSpec() {
        return (((Short.toUnsignedInt(sprm)) & 0x200)) != 0;
    }


    public byte getsgc() {
        return (byte)(((((Short.toUnsignedInt(sprm)) >>> 10)) & 0x07));
    }


    public byte getspra() {
        return (byte)(((((Short.toUnsignedInt(sprm)) >>> 13)) & 0x07));
    }


    public short sprm;

    public Sprm(short _sprm) {
        this.sprm = _sprm;
    }

    @Override
    public String toString() {
        String sprmName;
        com.pullenti.unisharp.Outargwrapper<String> wrapsprmName536 = new com.pullenti.unisharp.Outargwrapper<String>();
        boolean inoutres537 = com.pullenti.unisharp.Utils.tryGetValue(SinglePropertyModifiers.map, sprm, wrapsprmName536);
        sprmName = wrapsprmName536.value;
        if (inoutres537) 
            return sprmName;
        else 
            return "sprm: 0x" + String.format("%4X", sprm);
    }
    public Sprm() {
        this((short)0);
    }
}
