public class Customer
extends java.lang.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="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"/>
<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}dateTime" minOccurs="0"/>
<element name="type" type="{http://example.fusesource.org/}customerType" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<java.lang.String> |
address |
protected javax.xml.datatype.XMLGregorianCalendar |
birthDate |
protected java.lang.String |
name |
protected int |
numOrders |
protected double |
revenue |
protected java.math.BigDecimal |
test |
protected CustomerType |
type |
| Constructor and Description |
|---|
Customer() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getAddress()
Gets the value of the address property.
|
javax.xml.datatype.XMLGregorianCalendar |
getBirthDate()
Gets the value of the birthDate property.
|
java.lang.String |
getName()
Gets the value of the name property.
|
int |
getNumOrders()
Gets the value of the numOrders property.
|
double |
getRevenue()
Gets the value of the revenue property.
|
java.math.BigDecimal |
getTest()
Gets the value of the test property.
|
CustomerType |
getType()
Gets the value of the type property.
|
void |
setBirthDate(javax.xml.datatype.XMLGregorianCalendar value)
Sets the value of the birthDate property.
|
void |
setName(java.lang.String value)
Sets the value of the name property.
|
void |
setNumOrders(int value)
Sets the value of the numOrders property.
|
void |
setRevenue(double value)
Sets the value of the revenue property.
|
void |
setTest(java.math.BigDecimal value)
Sets the value of the test property.
|
void |
setType(CustomerType value)
Sets the value of the type property.
|
protected java.lang.String name
protected java.util.List<java.lang.String> address
protected int numOrders
protected double revenue
protected java.math.BigDecimal test
protected javax.xml.datatype.XMLGregorianCalendar birthDate
protected CustomerType type
public java.lang.String getName()
Stringpublic void setName(java.lang.String value)
value - allowed object is
Stringpublic java.util.List<java.lang.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 int getNumOrders()
public void setNumOrders(int value)
public double getRevenue()
public void setRevenue(double value)
public java.math.BigDecimal getTest()
BigDecimalpublic void setTest(java.math.BigDecimal value)
value - allowed object is
BigDecimalpublic javax.xml.datatype.XMLGregorianCalendar getBirthDate()
XMLGregorianCalendarpublic void setBirthDate(javax.xml.datatype.XMLGregorianCalendar value)
value - allowed object is
XMLGregorianCalendarpublic CustomerType getType()
CustomerTypepublic void setType(CustomerType value)
value - allowed object is
CustomerTypeCopyright © 2014 Red Hat. All Rights Reserved.