| com.jgoodies.validation.tutorial.shared.Order
All known Subclasses: com.jgoodies.validation.tutorial.validator.ValidatingOrder,
Order | public class Order extends Model (Code) | | Describes an order that demonstrates different types of constraints.
The property constraints are: mandatory vs. optional,
minimum and maximum length, minimum and maximum values,
linked constraints.
Provides the following bound properties:
orderNo, orderDate, deliveryDate, deliveryNotes.
author: Karsten Lentzsch version: $Revision: 1.8 $ |
Constructor Summary | |
public | Order() Constructs an empty Order . |
Method Summary | |
public Date | getDeliveryDate() Returns the date that describes when the product has been delivered. | public String | getDeliveryNotes() Returns this order's optional delivery notes that describe
the delivery, packaging or shipment. | public Date | getOrderDate() Returns the date that describes when this order has been initiated
by the customer. | public String | getOrderNo() Returns this order's unique id. | public void | setDeliveryDate(Date newDate) Sets this order's delivery date. | public void | setDeliveryNotes(String newNotes) Sets this order's optional delivery notes that describe
the delivery, packaging or shipment. | public void | setOrderDate(Date newDate) Sets this order's order date that describes when the order has
been initiated by the customer. | public void | setOrderNo(String newValue) Sets a new unique order number. |
PROPERTYNAME_DELIVERY_DATE | final public static String PROPERTYNAME_DELIVERY_DATE(Code) | | |
PROPERTYNAME_DELIVERY_NOTES | final public static String PROPERTYNAME_DELIVERY_NOTES(Code) | | |
PROPERTYNAME_ORDER_DATE | final public static String PROPERTYNAME_ORDER_DATE(Code) | | |
PROPERTYNAME_ORDER_NO | final public static String PROPERTYNAME_ORDER_NO(Code) | | |
Order | public Order()(Code) | | Constructs an empty Order .
|
getOrderDate | public Date getOrderDate()(Code) | | Returns the date that describes when this order has been initiated
by the customer.
the order date See Also: Order.setOrderDate(Date) |
setDeliveryDate | public void setDeliveryDate(Date newDate)(Code) | | Sets this order's delivery date. Stores the new Date's time,
not the Date itself, to avoid external modifications.
Parameters: newDate - the delivery date to be set See Also: Order.getDeliveryDate() See Also: Order.getOrderDate() |
setDeliveryNotes | public void setDeliveryNotes(String newNotes)(Code) | | Sets this order's optional delivery notes that describe
the delivery, packaging or shipment.
Parameters: newNotes - the delivery notes to be set See Also: Order.getDeliveryNotes() |
setOrderDate | public void setOrderDate(Date newDate)(Code) | | Sets this order's order date that describes when the order has
been initiated by the customer. Stores the new Date's time,
not the Date itself, to avoid external modifications.
Parameters: newDate - the order date to be set See Also: Order.getOrderDate() See Also: Order.getDeliveryDate() |
setOrderNo | public void setOrderNo(String newValue)(Code) | | Sets a new unique order number.
Parameters: newValue - the order number to be set See Also: Order.getOrderNo() |
|
|