Class 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 Detail

      • customerId

        protected int customerId
      • numOrders

        protected Integer numOrders
      • revenue

        protected double revenue
      • birthDate

        protected Date birthDate
    • 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
      • setType

        public void setType​(CustomerType value)
        Sets the value of the type property.
        Parameters:
        value - allowed object is CustomerType