Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.golf;
  
  import java.util.List;
The Golf Tee Time Availability requests availability for specified golf facility(s) and optional tee time(s). Golfer information must be provided and optional discount/promotion and requested amenities may be specified to validate booking rules and establish tee time pricing. Additional message functionality includes transaction processing directives that influence search results, such as display currency and maximum quantity of results. Developer Notes: The ID of a golf facility is required to request tee time availability. 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="OTA_GolfCourseAvailRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS" minOccurs="0"/>
       <xs:element name="ProcessingInfo" minOccurs="0">
         <!-- Reference to inner class ProcessingInfo -->
       </xs:element>
       <xs:element type="ns:MultiModalOfferType" name="MultimodalOffer" minOccurs="0"/>
       <xs:element name="GolfFacility" maxOccurs="unbounded">
         <!-- Reference to inner class GolfFacility -->
       </xs:element>
       <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 
 
 public class CourseAvailRQ
 {
     private POS POS;
     private ProcessingInfo processingInfo;
     private MultiModalOffer multimodalOffer;
     private List<GolfFacilitygolfFacilityList = new ArrayList<GolfFacility>();
     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 'ProcessingInfo' element value.

Returns:
value
 
     public ProcessingInfo getProcessingInfo() {
         return ;
     }

    
Set the 'ProcessingInfo' element value.

Parameters:
processingInfo
 
     public void setProcessingInfo(ProcessingInfo processingInfo) {
         this. = processingInfo;
     }

    
Get the 'MultimodalOffer' element value. Multimodal offer influencers.

Returns:
value
 
     public MultiModalOffer getMultimodalOffer() {
         return ;
     }

    
Set the 'MultimodalOffer' element value. Multimodal offer influencers.

Parameters:
multimodalOffer
    public void setMultimodalOffer(MultiModalOffer multimodalOffer) {
        this. = multimodalOffer;
    }

    
Get the list of 'GolfFacility' element items.

Returns:
list
        return ;
    }

    
Set the list of 'GolfFacility' element items.

Parameters:
list
    public void setGolfFacilityList(List<GolfFacilitylist) {
         = list;
    }

    
Get the number of 'GolfFacility' element items.

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

    
Add a 'GolfFacility' element item.

Parameters:
item
    public void addGolfFacility(GolfFacility item) {
        .add(item);
    }

    
Get 'GolfFacility' element item by position.

Parameters:
index
Returns:
item
    public GolfFacility getGolfFacility(int index) {
        return .get(index);
    }

    
Remove all 'GolfFacility' element items.
    public void clearGolfFacilityList() {
        .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;
    }
    
Transaction processing directives, including display and pricing currency overrides. If no display or pricing currency information is provided, the display and pricing currency will default to the value in POS/Source/@ISOCurrency. 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="ProcessingInfo" minOccurs="0">
   <xs:complexType>
     <xs:attribute type="xs:string" use="optional" name="DisplayCurrency"/>
     <xs:attribute type="xs:string" use="optional" name="PricingCurrency"/>
     <xs:attribute type="xs:boolean" use="optional" name="RedemptionInd"/>
     <xs:attribute type="xs:string" use="optional" name="MaxResultsQty"/>
   </xs:complexType>
 </xs:element>
 
    public static class ProcessingInfo
    {
        private String displayCurrency;
        private String pricingCurrency;
        private Boolean redemptionInd;
        private String maxResultsQty;

        
Get the 'DisplayCurrency' attribute value. The requested display currency in ISO 4217 encoding.(Reference): http://www.opentraveldevelopersnetwork.com/Supported_ISO_Standards.php(More Info): http://www.opentraveldevelopersnetwork.com/2012A_SchemaDoc/DisplayCurrency

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

        
Set the 'DisplayCurrency' attribute value. The requested display currency in ISO 4217 encoding.(Reference): http://www.opentraveldevelopersnetwork.com/Supported_ISO_Standards.php(More Info): http://www.opentraveldevelopersnetwork.com/2012A_SchemaDoc/DisplayCurrency

Parameters:
displayCurrency
        public void setDisplayCurrency(String displayCurrency) {
            this. = displayCurrency;
        }

        
Get the 'PricingCurrency' attribute value. The requested pricing currency in ISO 4217 encoding.CAD = Canadian Dollar | USD = United States Dollar | EUR = Eurohttp://www.opentraveldevelopersnetwork.com/Supported_ISO_Standards.php

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

        
Set the 'PricingCurrency' attribute value. The requested pricing currency in ISO 4217 encoding.CAD = Canadian Dollar | USD = United States Dollar | EUR = Eurohttp://www.opentraveldevelopersnetwork.com/Supported_ISO_Standards.php

Parameters:
pricingCurrency
        public void setPricingCurrency(String pricingCurrency) {
            this. = pricingCurrency;
        }

        
Get the 'RedemptionInd' attribute value. If true, redemption program points may be used to pay for the total or a portion of the tee time.

Returns:
value
        public Boolean getRedemptionInd() {
            return ;
        }

        
Set the 'RedemptionInd' attribute value. If true, redemption program points may be used to pay for the total or a portion of the tee time.

Parameters:
redemptionInd
        public void setRedemptionInd(Boolean redemptionInd) {
            this. = redemptionInd;
        }

        
Get the 'MaxResultsQty' attribute value. The maximum quantity of search results in the response.

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

        
Set the 'MaxResultsQty' attribute value. The maximum quantity of search results in the response.

Parameters:
maxResultsQty
        public void setMaxResultsQty(String maxResultsQty) {
            this. = maxResultsQty;
        }
    }
    
One or more golf facility(s) and tee time round(s) to request availability for. 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="GolfFacility" maxOccurs="unbounded">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:UniqueID_Type">
         <xs:sequence>
           <xs:element type="ns:TeeTimeAvailType" name="TeeTime" maxOccurs="99"/>
         </xs:sequence>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
    public static class GolfFacility extends UniqueID
    {
        private List<TeeTimeAvailteeTimeList = new ArrayList<TeeTimeAvail>();

        
Get the list of 'TeeTime' element items. One or more tee time(s) to request availability for.

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

        
Set the list of 'TeeTime' element items. One or more tee time(s) to request availability for.

Parameters:
list
        public void setTeeTimeList(List<TeeTimeAvaillist) {
             = list;
        }

        
Get the number of 'TeeTime' element items.

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

        
Add a 'TeeTime' element item.

Parameters:
item
        public void addTeeTime(TeeTimeAvail item) {
            .add(item);
        }

        
Get 'TeeTime' element item by position.

Parameters:
index
Returns:
item
        public TeeTimeAvail getTeeTime(int index) {
            return .get(index);
        }

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