1 10 11 package org.mule.samples.voipservice.to; 12 13 import java.io.Serializable ; 14 15 18 public class ServiceParamTO implements Serializable 19 { 20 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 toString() 60 { 61 StringBuffer stringBuffer = new StringBuffer (); 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 |