Package com.example.customerservice
Class Customer
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description 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
Constructors Constructor Description Customer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Field Detail
-
customerId
protected int customerId
-
name
protected String name
-
numOrders
protected Integer numOrders
-
revenue
protected double revenue
-
test
protected BigDecimal test
-
birthDate
protected Date birthDate
-
type
protected CustomerType type
-
-
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 isString
-
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 isInteger
-
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 isBigDecimal
-
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 isString
-
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 isCustomerType
-
-