com.example.customerservice
Class Customer

java.lang.Object
  extended by com.example.customerservice.Customer

public class Customer
extends Object

Java class for customer complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="customer">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="customerId" type="{http://www.w3.org/2001/XMLSchema}int"/>
         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="address" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
         <element name="numOrders" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
         <element name="revenue" type="{http://www.w3.org/2001/XMLSchema}double"/>
         <element name="test" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
         <element name="birthDate" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
         <element name="type" type="{http://customerservice.example.com/}customerType" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  List<String> address
           
protected  Date birthDate
           
protected  int customerId
           
protected  String name
           
protected  Integer numOrders
           
protected  double revenue
           
protected  BigDecimal test
           
protected  CustomerType type
           
 
Constructor Summary
Customer()
           
 
Method Summary
 List<String> getAddress()
          Gets the value of the address property.
 Date getBirthDate()
          Gets the value of the birthDate property.
 int getCustomerId()
          Gets the value of the customerId property.
 String getName()
          Gets the value of the name property.
 Integer getNumOrders()
          Gets the value of the numOrders property.
 double getRevenue()
          Gets the value of the revenue property.
 BigDecimal getTest()
          Gets the value of the test property.
 CustomerType getType()
          Gets the value of the type property.
 void setBirthDate(Date value)
          Sets the value of the birthDate property.
 void setCustomerId(int value)
          Sets the value of the customerId property.
 void setName(String value)
          Sets the value of the name property.
 void setNumOrders(Integer value)
          Sets the value of the numOrders property.
 void setRevenue(double value)
          Sets the value of the revenue property.
 void setTest(BigDecimal value)
          Sets the value of the test property.
 void setType(CustomerType value)
          Sets the value of the type property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

customerId

protected int customerId

name

protected String name

address

protected List<String> address

numOrders

protected Integer numOrders

revenue

protected double revenue

test

protected BigDecimal test

birthDate

protected Date birthDate

type

protected CustomerType type
Constructor Detail

Customer

public Customer()
Method Detail

getCustomerId

public int getCustomerId()
Gets the value of the customerId property.


setCustomerId

public void setCustomerId(int value)
Sets the value of the customerId property.


getName

public String getName()
Gets the value of the name property.

Returns:
possible object is String

setName

public void setName(String value)
Sets the value of the name property.

Parameters:
value - allowed object is String

getAddress

public List<String> getAddress()
Gets the value of the address property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the address property.

For example, to add a new item, do as follows:

    getAddress().add(newItem);
 

Objects of the following type(s) are allowed in the list String


getNumOrders

public Integer getNumOrders()
Gets the value of the numOrders property.

Returns:
possible object is Integer

setNumOrders

public void setNumOrders(Integer value)
Sets the value of the numOrders property.

Parameters:
value - allowed object is Integer

getRevenue

public double getRevenue()
Gets the value of the revenue property.


setRevenue

public void setRevenue(double value)
Sets the value of the revenue property.


getTest

public BigDecimal getTest()
Gets the value of the test property.

Returns:
possible object is BigDecimal

setTest

public void setTest(BigDecimal value)
Sets the value of the test property.

Parameters:
value - allowed object is BigDecimal

getBirthDate

public Date getBirthDate()
Gets the value of the birthDate property.

Returns:
possible object is String

setBirthDate

public void setBirthDate(Date value)
Sets the value of the birthDate property.

Parameters:
value - allowed object is String

getType

public CustomerType getType()
Gets the value of the type property.

Returns:
possible object is CustomerType

setType

public void setType(CustomerType value)
Sets the value of the type property.

Parameters:
value - allowed object is CustomerType


Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.