|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.example.customerservice.Customer
public class Customer
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 |
|---|
protected int customerId
protected String name
protected List<String> address
protected Integer numOrders
protected double revenue
protected BigDecimal test
protected Date birthDate
protected CustomerType type
| Constructor Detail |
|---|
public Customer()
| Method Detail |
|---|
public int getCustomerId()
public void setCustomerId(int value)
public String getName()
Stringpublic void setName(String value)
value - allowed object is
Stringpublic List<String> getAddress()
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
public Integer getNumOrders()
Integerpublic void setNumOrders(Integer value)
value - allowed object is
Integerpublic double getRevenue()
public void setRevenue(double value)
public BigDecimal getTest()
BigDecimalpublic void setTest(BigDecimal value)
value - allowed object is
BigDecimalpublic Date getBirthDate()
Stringpublic void setBirthDate(Date value)
value - allowed object is
Stringpublic CustomerType getType()
CustomerTypepublic void setType(CustomerType value)
value - allowed object is
CustomerType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||