Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012B.golf;
  
  import java.util.List;
The Golf Course Reservation Modification request provides the information required to modify an existing (booked) tee time reservation for one or more golfers. Note that the response message for this request is the OTA_GolfCourseResRS message. Schema fragment(s) for this class:
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="OTA_GolfCourseResModifyRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS" minOccurs="0"/>
       <xs:element type="ns:TeeTimeModifyType" name="GolfCourseRes" maxOccurs="99"/>
       <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 
 
 public class CourseResModifyRQ
 {
     private POS POS;
     private List<TeeTimeModifygolfCourseReList = new ArrayList<TeeTimeModify>();
     private TPAExtensions TPAExtensions;
Get the 'POS' element value. Point of Sale identification.

Returns:
value
 
     public POS getPOS() {
         return ;
     }

    
Set the 'POS' element value. Point of Sale identification.

Parameters:
POS
 
     public void setPOS(POS POS) {
         this. = POS;
     }

    
Get the list of 'GolfCourseRes' element items. Golf course tee time reservation(s) to be modified.

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

    
Set the list of 'GolfCourseRes' element items. Golf course tee time reservation(s) to be modified.

Parameters:
list
 
     public void setGolfCourseReList(List<TeeTimeModifylist) {
          = list;
     }

    
Get the number of 'GolfCourseRes' element items.

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

    
Add a 'GolfCourseRes' element item.

Parameters:
item
 
     public void addGolfCourseRe(TeeTimeModify item) {
         .add(item);
     }

    
Get 'GolfCourseRes' element item by position.

Parameters:
index
Returns:
item
 
     public TeeTimeModify getGolfCourseRe(int index) {
         return .get(index);
     }

    
Remove all 'GolfCourseRes' element items.
 
    public void clearGolfCourseReList() {
        .clear();
    }

    
Get the 'TPA_Extensions' element value.

Returns:
value
    public TPAExtensions getTPAExtensions() {
        return ;
    }

    
Set the 'TPA_Extensions' element value.

Parameters:
TPAExtensions
    public void setTPAExtensions(TPAExtensions TPAExtensions) {
        this. = TPAExtensions;
    }

    
Get the 'OTA_PayloadStdAttributes' attributeGroup value. The OTA_PayloadStdAttributes defines the standard attributes that appear on the root element for all OpenTravel Messages.

Returns:
value
        return ;
    }

    
Set the 'OTA_PayloadStdAttributes' attributeGroup value. The OTA_PayloadStdAttributes defines the standard attributes that appear on the root element for all OpenTravel Messages.

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