Building Parsers with Java

sjm.examples.cloning
Class OrderOk

java.lang.Object
  |
  +--sjm.examples.cloning.OrderOk

public class OrderOk
extends java.lang.Object
implements java.lang.Cloneable

This class has an Ok public clone() method.


Field Summary
protected  Customer customer
           
 
Constructor Summary
OrderOk(Customer customer)
          Construct a customer.
 
Method Summary
 java.lang.Object clone()
          Return a copy of this object.
 Customer getCustomer()
          Get this order's customer.
 void setCustomer(Customer customer)
          Set the customer for this order.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

customer

protected Customer customer
Constructor Detail

OrderOk

public OrderOk(Customer customer)
Construct a customer.
Method Detail

clone

public java.lang.Object clone()
Return a copy of this object.
Overrides:
clone in class java.lang.Object
Returns:
a copy of this object

getCustomer

public Customer getCustomer()
Get this order's customer.
Returns:
Customer

setCustomer

public void setCustomer(Customer customer)
Set the customer for this order.
Parameters:
customer - Customer

by Steve Metsker