Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.cruise;
  
  import java.util.List;
Provides information regarding the guest name and the guest's mode of transportation. 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="GuestType">
   <xs:sequence>
     <xs:element type="ns:PersonNameType" name="GuestName" minOccurs="0"/>
     <xs:element type="ns:GuestTransportationType" name="GuestTransportation" minOccurs="0" maxOccurs="2"/>
   </xs:sequence>
   <xs:attributeGroup ref="ns:GuestInfoGroup"/>
 </xs:complexType>
 
 
 public class Guest
 {
     private PersonName guestName;
     private GuestInfoGroup guestInfoGroup;

    
Get the 'GuestName' element value. Name of the guest.

Returns:
value
 
     public PersonName getGuestName() {
         return ;
     }

    
Set the 'GuestName' element value. Name of the guest.

Parameters:
guestName
 
     public void setGuestName(PersonName guestName) {
         this. = guestName;
     }

    
Get the list of 'GuestTransportation' element items. Selected guest mode of transportation.

Returns:
list
 
         return ;
     }

    
Set the list of 'GuestTransportation' element items. Selected guest mode of transportation.

Parameters:
list
 
     public void setGuestTransportationList(List<GuestTransportationlist) {
          = list;
     }

    
Get the number of 'GuestTransportation' element items.

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

    
Add a 'GuestTransportation' element item.

Parameters:
item
 
     public void addGuestTransportation(GuestTransportation item) {
         .add(item);
     }

    
Get 'GuestTransportation' element item by position.

Parameters:
index
Returns:
item
 
     public GuestTransportation getGuestTransportation(int index) {
         return .get(index);
     }

    
Remove all 'GuestTransportation' element items.
 
     public void clearGuestTransportationList() {
         .clear();
     }

    
Get the 'GuestInfoGroup' attributeGroup value. Provides information about the guest.

Returns:
value
    public GuestInfoGroup getGuestInfoGroup() {
        return ;
    }

    
Set the 'GuestInfoGroup' attributeGroup value. Provides information about the guest.

Parameters:
guestInfoGroup
    public void setGuestInfoGroup(GuestInfoGroup guestInfoGroup) {
        this. = guestInfoGroup;
    }
New to GrepCode? Check out our FAQ X