Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2011B.pkg;
  
  import java.util.List;
Defines the required accommodation component of a package holiday. 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="AccommodationSegmentRequestType">
   <xs:sequence>
     <xs:element type="ns:PropertyIdentityType" name="Identity" minOccurs="0"/>
     <xs:element type="ns:DateTimeSpanType" name="DateRange"/>
     <xs:element name="RoomProfiles" minOccurs="0">
       <!-- Reference to inner class RoomProfiles -->
     </xs:element>
     <xs:element name="MealPlans" minOccurs="0">
       <!-- Reference to inner class MealPlans -->
     </xs:element>
   </xs:sequence>
   <xs:attribute type="xs:string" use="optional" name="RPH"/>
   <xs:attributeGroup ref="ns:DestinationLevelGroup"/>
   <xs:attributeGroup ref="ns:ResortCodeGroup"/>
 </xs:complexType>
 
 
 {
     private PropertyIdentity identity;
     private DateTimeSpan dateRange;
     private RoomProfiles roomProfiles;
     private MealPlans mealPlans;
     private String RPH;
     private ResortCodeGroup resortCodeGroup;

    
Get the 'Identity' element value. Full name or description plus codes for a property.

Returns:
value
 
     public PropertyIdentity getIdentity() {
         return ;
     }

    
Set the 'Identity' element value. Full name or description plus codes for a property.

Parameters:
identity
 
     public void setIdentity(PropertyIdentity identity) {
         this. = identity;
     }

    
Get the 'DateRange' element value. The Start date and Duration or End Date of the accommodation stay.

Returns:
value
 
     public DateTimeSpan getDateRange() {
         return ;
     }

    
Set the 'DateRange' element value. The Start date and Duration or End Date of the accommodation stay.

Parameters:
dateRange
 
     public void setDateRange(DateTimeSpan dateRange) {
         this. = dateRange;
     }

    
Get the 'RoomProfiles' element value.

Returns:
value
 
     public RoomProfiles getRoomProfiles() {
         return ;
     }

    
Set the 'RoomProfiles' element value.

Parameters:
roomProfiles
 
     public void setRoomProfiles(RoomProfiles roomProfiles) {
         this. = roomProfiles;
     }

    
Get the 'MealPlans' element value.

Returns:
value
 
     public MealPlans getMealPlans() {
        return ;
    }

    
Set the 'MealPlans' element value.

Parameters:
mealPlans
    public void setMealPlans(MealPlans mealPlans) {
        this. = mealPlans;
    }

    
Get the 'RPH' attribute value. (Reference Place Holder) - an index code to identify an instance in a collection of like items. For example, used to assign individual passengers or clients to particular itinerary items.

Returns:
value
    public String getRPH() {
        return ;
    }

    
Set the 'RPH' attribute value. (Reference Place Holder) - an index code to identify an instance in a collection of like items. For example, used to assign individual passengers or clients to particular itinerary items.

Parameters:
RPH
    public void setRPH(String RPH) {
        this. = RPH;
    }

    
Get the 'DestinationLevelGroup' attributeGroup value. Identifies the parent of the Resort. The geo-political position of the destination (e.g. country) is determined by the DestinationLevel attribute.

Returns:
value
        return ;
    }

    
Set the 'DestinationLevelGroup' attributeGroup value. Identifies the parent of the Resort. The geo-political position of the destination (e.g. country) is determined by the DestinationLevel attribute.

Parameters:
destinationLevelGroup
    public void setDestinationLevelGroup(
            DestinationLevelGroup destinationLevelGroup) {
        this. = destinationLevelGroup;
    }

    
Get the 'ResortCodeGroup' attributeGroup value. Identifies a resort by code or name.

Returns:
value
        return ;
    }

    
Set the 'ResortCodeGroup' attributeGroup value. Identifies a resort by code or name.

Parameters:
resortCodeGroup
    public void setResortCodeGroup(ResortCodeGroup resortCodeGroup) {
        this. = resortCodeGroup;
    }
    
A collection of RoomProfile elements 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="RoomProfiles" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:RoomProfileType" name="RoomProfile" maxOccurs="9"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
    public static class RoomProfiles
    {
        private List<RoomProfileroomProfileList = new ArrayList<RoomProfile>();

        
Get the list of 'RoomProfile' element items. Details of passengers and amenities for a room.

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

        
Set the list of 'RoomProfile' element items. Details of passengers and amenities for a room.

Parameters:
list
        public void setRoomProfileList(List<RoomProfilelist) {
             = list;
        }

        
Get the number of 'RoomProfile' element items.

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

        
Add a 'RoomProfile' element item.

Parameters:
item
        public void addRoomProfile(RoomProfile item) {
            .add(item);
        }

        
Get 'RoomProfile' element item by position.

Parameters:
index
Returns:
item
        public RoomProfile getRoomProfile(int index) {
            return .get(index);
        }

        
Remove all 'RoomProfile' element items.
        public void clearRoomProfileList() {
            .clear();
        }
    }
    
A collection of MealPlan elements 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="MealPlans" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:MealPlanType" name="MealPlan" maxOccurs="9"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
    public static class MealPlans
    {
        private List<MealPlanmealPlanList = new ArrayList<MealPlan>();

        
Get the list of 'MealPlan' element items. Details of meal arrangements, booked or available according to context, with appropriate supplementary charges.

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

        
Set the list of 'MealPlan' element items. Details of meal arrangements, booked or available according to context, with appropriate supplementary charges.

Parameters:
list
        public void setMealPlanList(List<MealPlanlist) {
             = list;
        }

        
Get the number of 'MealPlan' element items.

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

        
Add a 'MealPlan' element item.

Parameters:
item
        public void addMealPlan(MealPlan item) {
            .add(item);
        }

        
Get 'MealPlan' element item by position.

Parameters:
index
Returns:
item
        public MealPlan getMealPlan(int index) {
            return .get(index);
        }

        
Remove all 'MealPlan' element items.
        public void clearMealPlanList() {
            .clear();
        }
    }
New to GrepCode? Check out our FAQ X