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>addressprotected DatebirthDateprotected intcustomerIdprotected Stringnameprotected IntegernumOrdersprotected doublerevenueprotected BigDecimaltestprotected CustomerTypetype
-
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.DategetBirthDate()Gets the value of the birthDate property.intgetCustomerId()Gets the value of the customerId property.StringgetName()Gets the value of the name property.IntegergetNumOrders()Gets the value of the numOrders property.doublegetRevenue()Gets the value of the revenue property.BigDecimalgetTest()Gets the value of the test property.CustomerTypegetType()Gets the value of the type property.voidsetBirthDate(Date value)Sets the value of the birthDate property.voidsetCustomerId(int value)Sets the value of the customerId property.voidsetName(String value)Sets the value of the name property.voidsetNumOrders(Integer value)Sets the value of the numOrders property.voidsetRevenue(double value)Sets the value of the revenue property.voidsetTest(BigDecimal value)Sets the value of the test property.voidsetType(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
setmethod 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
-
-