'Sets the All-Or-None property for this order.
:param allOrNone: True if the order should be completely filled.
:type allOrNone: boolean.
.. note:: This can\'t be changed once the order is submitted.'

def setAllOrNone(self, allOrNone):

    if (self.__state != Order.State.INITIAL):
        raise Exception('The    order    has    already    been    submitted')
    self.__allOrNone = allOrNone
