All Downloads are FREE. Search and download functionalities are using the official Maven repository.

b3.entrypoint.fixp.sbe.ExecRestatementReason Maven / Gradle / Ivy

/* Generated SBE (Simple Binary Encoding) message codec. */
package b3.entrypoint.fixp.sbe;


/**
 * Indicates reason of restatement, if available.
 */
@SuppressWarnings("all")
public enum ExecRestatementReason
{
    MARKET_OPTION((short)8),

    CANCEL_ON_HARD_DISCONNECTION((short)100),

    CANCEL_ON_TERMINATE((short)101),

    CANCEL_ON_DISCONNECT_AND_TERMINATE((short)102),

    SELF_TRADING_PREVENTION((short)103),

    CANCEL_FROM_FIRMSOFT((short)105),

    CANCEL_RESTING_ORDER_ON_SELF_TRADE((short)107),

    MARKET_MAKER_PROTECTION((short)200),

    RISK_MANAGEMENT_CANCELLATION((short)201),

    ORDER_MASS_ACTION_FROM_CLIENT_REQUEST((short)202),

    CANCEL_ORDER_DUE_TO_OPERATIONAL_ERROR((short)203),

    ORDER_CANCELLED_DUE_TO_OPERATIONAL_ERROR((short)204),

    CANCEL_ORDER_FIRMSOFT_DUE_TO_OPERATIONAL_ERROR((short)205),

    ORDER_CANCELLED_FIRMSOFT_DUE_TO_OPERATIONAL_ERROR((short)206),

    MASS_CANCEL_ORDER_DUE_TO_OPERATIONAL_ERROR_REQUEST((short)207),

    MASS_CANCEL_ORDER_DUE_TO_OPERATIONAL_ERROR_EFFECTIVE((short)208),

    CANCEL_ON_MIDPOINT_BROKER_ONLY_REMOVAL((short)209),

    /**
     * To be used to represent not present or null.
     */
    NULL_VAL((short)255);

    private final short value;

    ExecRestatementReason(final short value)
    {
        this.value = value;
    }

    /**
     * The raw encoded value in the Java type representation.
     *
     * @return the raw value encoded.
     */
    public short value()
    {
        return value;
    }

    /**
     * Lookup the enum value representing the value.
     *
     * @param value encoded to be looked up.
     * @return the enum value representing the value.
     */
    public static ExecRestatementReason get(final short value)
    {
        switch (value)
        {
            case 8: return MARKET_OPTION;
            case 100: return CANCEL_ON_HARD_DISCONNECTION;
            case 101: return CANCEL_ON_TERMINATE;
            case 102: return CANCEL_ON_DISCONNECT_AND_TERMINATE;
            case 103: return SELF_TRADING_PREVENTION;
            case 105: return CANCEL_FROM_FIRMSOFT;
            case 107: return CANCEL_RESTING_ORDER_ON_SELF_TRADE;
            case 200: return MARKET_MAKER_PROTECTION;
            case 201: return RISK_MANAGEMENT_CANCELLATION;
            case 202: return ORDER_MASS_ACTION_FROM_CLIENT_REQUEST;
            case 203: return CANCEL_ORDER_DUE_TO_OPERATIONAL_ERROR;
            case 204: return ORDER_CANCELLED_DUE_TO_OPERATIONAL_ERROR;
            case 205: return CANCEL_ORDER_FIRMSOFT_DUE_TO_OPERATIONAL_ERROR;
            case 206: return ORDER_CANCELLED_FIRMSOFT_DUE_TO_OPERATIONAL_ERROR;
            case 207: return MASS_CANCEL_ORDER_DUE_TO_OPERATIONAL_ERROR_REQUEST;
            case 208: return MASS_CANCEL_ORDER_DUE_TO_OPERATIONAL_ERROR_EFFECTIVE;
            case 209: return CANCEL_ON_MIDPOINT_BROKER_ONLY_REMOVAL;
            case 255: return NULL_VAL;
        }

        throw new IllegalArgumentException("Unknown value: " + value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy