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

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

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


/**
 * Specifies the scope of the action. All Day and MOC orders will be cancelled. GTC, GTD and MOA orders will not be cancelled.
 */
@SuppressWarnings("all")
public enum MassActionScope
{
    ALL_ORDERS_FOR_A_TRADING_SESSION((short)6),

    ALL_ORDERS_FOR_DEFINED_ORDER_TAG_ID((short)20),

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

    private final short value;

    MassActionScope(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 MassActionScope get(final short value)
    {
        switch (value)
        {
            case 6: return ALL_ORDERS_FOR_A_TRADING_SESSION;
            case 20: return ALL_ORDERS_FOR_DEFINED_ORDER_TAG_ID;
            case 255: return NULL_VAL;
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy