Class OrderBuilder

java.lang.Object
com.caplin.motif.fx.trading.orders.details.OrderBuilder

@Deprecated public class OrderBuilder extends Object
Deprecated.
This class provides a builder which is used to instantiate and populate the fields of an order. You should not instantiate this class directly. Instead, you should create instances by calling StrategyBuilder.addOrderBuilder(int).
  • Method Details

    • setOrderId

      public OrderBuilder setOrderId(String orderId)
      Deprecated.
      Sets the order ID of the order to build.
      Parameters:
      orderId - the order ID of the order to build
      Returns:
      A reference to the builder itself to allow chaining calls.
    • getFixedFields

      public OrderFieldSet getFixedFields()
      Deprecated.
      Returns the fields relating to the order that cannot be edited by the user
      Returns:
      The fixed fields.
    • getEditableFields

      public OrderFieldSet getEditableFields()
      Deprecated.
      Returns the fields relating to the order that can be edited by the user.
      Returns:
      The editable fields.
    • getFixedSalesFields

      public OrderSalesFieldSet getFixedSalesFields()
      Deprecated.
      Returns the fields relating to the order that cannot be edited by the user These fields are only visible on the Sales Order Details subject.
      Returns:
      The fixed sales fields.
    • getEditableSalesFields

      public OrderSalesFieldSet getEditableSalesFields()
      Deprecated.
      Returns the fields relating to the order that can be edited by the user. These fields are only visible on the Sales Order Details subject.
      Returns:
      The editable sales fields.
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object