jimm.twice.ice.xml
Class DeliveryPolicy
java.lang.Object
jimm.twice.ice.xml.Message
jimm.twice.ice.xml.DeliveryPolicy
- public class DeliveryPolicy
- extends Message
Delivery policy; goes with an offer.
- Author:
- Jim Menard, jimm@io.com
Fields inherited from class jimm.twice.ice.xml.Message |
node |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EXPIRATION_PRIORITY_FIRST
public static final java.lang.String EXPIRATION_PRIORITY_FIRST
- See Also:
- Constant Field Values
EXPIRATION_PRIORITY_TIME
public static final java.lang.String EXPIRATION_PRIORITY_TIME
- See Also:
- Constant Field Values
EXPIRATION_PRIORITY_QUANTITY
public static final java.lang.String EXPIRATION_PRIORITY_QUANTITY
- See Also:
- Constant Field Values
EXPIRATION_PRIORITY_LAST
public static final java.lang.String EXPIRATION_PRIORITY_LAST
- See Also:
- Constant Field Values
DeliveryPolicy
public DeliveryPolicy()
- Constructor.
setStartDate
public void setStartDate(DateTime dt)
setStopDate
public void setStopDate(DateTime dt)
setQuantity
public void setQuantity(int quantity)
setExpirationPriority
public void setExpirationPriority(java.lang.String priority)
- Sets expiration policy attribute. priority must be one of the
EXPIRATION_PRIORITY_*
constants.
- Parameters:
priority
- One of the EXPIRATION_PRIORITY_*
constants
- Throws:
java.lang.IllegalArgumentException
- when priority is not one of
the EXPIRATION_PRIORITY_*
constants
addDeliveryRule
public DeliveryRule addDeliveryRule(DeliveryRule child)