KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > samples > voipservice > to > ServiceParamTO


1 /*
2  * $Id: ServiceParamTO.java 3798 2006-11-04 04:07:14Z aperepel $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.samples.voipservice.to;
12
13 import java.io.Serializable JavaDoc;
14
15 /**
16  * @author Binildas Christudas
17  */

18 public class ServiceParamTO implements Serializable JavaDoc
19 {
20     /**
21      * Serial version
22      */

23     private static final long serialVersionUID = -4807303917627749519L;
24
25     private CustomerTO customerTO;
26     private CreditCardTO creditCardTO;
27
28     public ServiceParamTO()
29     {
30         super();
31     }
32
33     public ServiceParamTO(CustomerTO customerTO, CreditCardTO creditCardTO)
34     {
35         this.customerTO = customerTO;
36         this.creditCardTO = creditCardTO;
37     }
38
39     public void setCustomer(CustomerTO customerTO)
40     {
41         this.customerTO = customerTO;
42     }
43
44     public CustomerTO getCustomer()
45     {
46         return customerTO;
47     }
48
49     public void setCreditCard(CreditCardTO creditCardTO)
50     {
51         this.creditCardTO = creditCardTO;
52     }
53
54     public CreditCardTO getCreditCard()
55     {
56         return creditCardTO;
57     }
58
59     public String JavaDoc toString()
60     {
61         StringBuffer JavaDoc stringBuffer = new StringBuffer JavaDoc();
62         if (this.customerTO != null)
63         {
64             stringBuffer.append("Customer -> " + customerTO);
65         }
66         if (this.creditCardTO != null)
67         {
68             stringBuffer.append("CreditCard -> " + creditCardTO);
69         }
70
71         return stringBuffer.toString();
72     }
73
74 }
75
Popular Tags