jimm.twice.ice.xml
Class DeliveryPolicy

java.lang.Object
  extended byjimm.twice.ice.xml.Message
      extended byjimm.twice.ice.xml.DeliveryPolicy

public class DeliveryPolicy
extends Message

Delivery policy; goes with an offer.

Author:
Jim Menard, jimm@io.com

Field Summary
static java.lang.String EXPIRATION_PRIORITY_FIRST
           
static java.lang.String EXPIRATION_PRIORITY_LAST
           
static java.lang.String EXPIRATION_PRIORITY_QUANTITY
           
static java.lang.String EXPIRATION_PRIORITY_TIME
           
 
Fields inherited from class jimm.twice.ice.xml.Message
node
 
Constructor Summary
DeliveryPolicy()
          Constructor.
 
Method Summary
 DeliveryRule addDeliveryRule(DeliveryRule child)
           
 void setExpirationPriority(java.lang.String priority)
          Sets expiration policy attribute.
 void setQuantity(int quantity)
           
 void setStartDate(DateTime dt)
           
 void setStopDate(DateTime dt)
           
 
Methods inherited from class jimm.twice.ice.xml.Message
addChild, addChild, addChild, getAttribute, getNode, getTag, setAttribute, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

DeliveryPolicy

public DeliveryPolicy()
Constructor.

Method Detail

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)