Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.destactivity;
  
  import java.util.List;
Details of a destination activity reservation. 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="DestActivityReservationType">
   <xs:sequence>
     <xs:element type="ns:UniqueID_Type" name="UniqueID" minOccurs="0"/>
     <xs:element name="TravelerCount" minOccurs="0" maxOccurs="4">
       <xs:complexType>
         <xs:attributeGroup ref="ns:TravelerCountGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element type="ns:TravelersType" name="Travelers" minOccurs="0"/>
     <xs:element type="ns:ContactPersonType" name="Contact"/>
     <xs:element type="ns:DestActivityItemsType" name="DestActivityItems"/>
   </xs:sequence>
 </xs:complexType>
 
 
 public class DestActivityReservation
 {
     private UniqueID uniqueID;
     private Travelers travelers;
     private ContactPerson contact;
     private DestActivityItems destActivityItems;

    
Get the 'UniqueID' element value. Used to uniquely identify a reservation.

Returns:
value
 
     public UniqueID getUniqueID() {
         return ;
     }

    
Set the 'UniqueID' element value. Used to uniquely identify a reservation.

Parameters:
uniqueID
 
     public void setUniqueID(UniqueID uniqueID) {
         this. = uniqueID;
     }

    
Get the list of 'TravelerCount' element items. The counts of types of travelers, such as 1 adult, 2 children if full traveler details are not required.

Returns:
list
 
         return ;
     }

    
Set the list of 'TravelerCount' element items. The counts of types of travelers, such as 1 adult, 2 children if full traveler details are not required.

Parameters:
list
 
     public void setTravelerCountList(List<TravelerCountGrouplist) {
          = list;
     }

    
Get the number of 'TravelerCount' element items.

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

    
Add a 'TravelerCount' element item.

Parameters:
item
 
     public void addTravelerCount(TravelerCountGroup item) {
         .add(item);
     }

    
Get 'TravelerCount' element item by position.

Parameters:
index
Returns:
item
 
     public TravelerCountGroup getTravelerCount(int index) {
         return .get(index);
     }

    
Remove all 'TravelerCount' element items.
    public void clearTravelerCountList() {
        .clear();
    }

    
Get the 'Travelers' element value. A collection of Traveler objects, identifying the travelers associated with this reservation.

Returns:
value
    public Travelers getTravelers() {
        return ;
    }

    
Set the 'Travelers' element value. A collection of Traveler objects, identifying the travelers associated with this reservation.

Parameters:
travelers
    public void setTravelers(Travelers travelers) {
        this. = travelers;
    }

    
Get the 'Contact' element value. Contact information for this booking. May be either one of the travelers as specified by the RPH or a new set of contact information.

Returns:
value
    public ContactPerson getContact() {
        return ;
    }

    
Set the 'Contact' element value. Contact information for this booking. May be either one of the travelers as specified by the RPH or a new set of contact information.

Parameters:
contact
    public void setContact(ContactPerson contact) {
        this. = contact;
    }

    
Get the 'DestActivityItems' element value. A collection of destination activity items.

Returns:
value
        return ;
    }

    
Set the 'DestActivityItems' element value. A collection of destination activity items.

Parameters:
destActivityItems
    public void setDestActivityItems(DestActivityItems destActivityItems) {
        this. = destActivityItems;
    }
New to GrepCode? Check out our FAQ X