Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2011B.pkg;
  
  import java.util.List;
CustomerCounts- Categorization of all Customers in a reservation or request. The total number of Customers will equal the sum of the Count attribute of all CustomerCount objects in this collection and assumes that the AgeQualifyingCode will be used to determine how each Customer should be billed. Each booking segment has its own CustomerCount attribute to help determine billing, headcount, etc. The CustomerCount collection cannot be modified using a delta. It must be resent in its entirety if modified. Schema fragment(s) for this class:
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="CustomerCountsType">
   <xs:sequence>
     <xs:element name="CustomerCount" maxOccurs="99">
       <!-- Reference to inner class CustomerCount -->
     </xs:element>
   </xs:sequence>
 </xs:complexType>
 
 
 public class CustomerCounts
 {
     private List<CustomerCountcustomerCountList = new ArrayList<CustomerCount>();

    
Get the list of 'CustomerCount' element items.

Returns:
list
 
     public List<CustomerCountgetCustomerCountList() {
         return ;
     }

    
Set the list of 'CustomerCount' element items.

Parameters:
list
 
     public void setCustomerCountList(List<CustomerCountlist) {
          = list;
     }

    
Get the number of 'CustomerCount' element items.

Returns:
count
 
     public int sizeCustomerCountList() {
         return .size();
     }

    
Add a 'CustomerCount' element item.

Parameters:
item
 
     public void addCustomerCount(CustomerCount item) {
         .add(item);
     }

    
Get 'CustomerCount' element item by position.

Parameters:
index
Returns:
item
 
     public CustomerCount getCustomerCount(int index) {
         return .get(index);
     }

    
Remove all 'CustomerCount' element items.
 
     public void clearCustomerCountList() {
         .clear();
     }
    
The quantity and definition of one customer type. Schema fragment(s) for this class:
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="CustomerCount" maxOccurs="99">
   <xs:complexType>
     <xs:attributeGroup ref="ns:BirthDateGroup"/>
     <xs:attributeGroup ref="ns:TravelerCountGroup"/>
   </xs:complexType>
 </xs:element>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="BirthDateGroup">
   <xs:attribute type="xs:date" use="optional" name="BirthDate"/>
 </xs:attributeGroup>
 
 
     public static class CustomerCount
     {
         private LocalDate birthDate;
         private TravelerCountGroup travelerCountGroup;

        
Get the 'BirthDate' attribute value. Indicates the date of birth as indicated in the document, in ISO 8601 prescribed format.

Returns:
value
        public LocalDate getBirthDate() {
            return ;
        }

        
Set the 'BirthDate' attribute value. Indicates the date of birth as indicated in the document, in ISO 8601 prescribed format.

Parameters:
birthDate
        public void setBirthDate(LocalDate birthDate) {
            this. = birthDate;
        }

        
Get the 'TravelerCountGroup' attributeGroup value.

Returns:
value
        public TravelerCountGroup getTravelerCountGroup() {
            return ;
        }

        
Set the 'TravelerCountGroup' attributeGroup value.

Parameters:
travelerCountGroup
        public void setTravelerCountGroup(TravelerCountGroup travelerCountGroup) {
            this. = travelerCountGroup;
        }
    }
New to GrepCode? Check out our FAQ X