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 Search request sends search criteria for golf facility(s), which may be a golf course proper and/or a facility such as a hotel that has an association with a nearby golf course or a course on premise. Supported search functionality includes: » Search by facility ID and/or name » Search by course location (street, city, state, county, country, postal code) » Search by geo-coded position » Search by proximity (location and maximum distance) » Search by maximum tee time fee » Search by facility amenities (golf carts, driving range, etc.) Additional message functionality includes: » Transaction processing directives to influence and or constrain search results, such as display/ pricing currency, redemption currency indicator and the maximum search results in the response » Point of sale information for the requestor and booking channel Developer Notes: » Note that this message pair is intended for a high level search of golf facility(s) and is not intended to be used for specific tee time search or availability. » Implementers should check with their trading partner(s) to determine the golf facility search capabilities supported by their system(s). 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_GolfCourseSearchRQ">
   <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 name="Criteria" minOccurs="0">
         <!-- Reference to inner class Criteria -->
       </xs:element>
       <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 
 
 public class CourseSearchRQ
 {
     private POS POS;
     private ProcessingInfo processingInfo;
     private Criteria criteria;
     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 'Criteria' element value.

Returns:
value
 
    public Criteria getCriteria() {
        return ;
    }

    
Set the 'Criteria' element value.

Parameters:
criteria
    public void setCriteria(Criteria criteria) {
        this. = criteria;
    }

    
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 currency overrides. If no display 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/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ProcessingInfo" minOccurs="0">
   <xs:complexType>
     <xs:attribute type="xs:boolean" use="optional" name="SummaryResultsInd"/>
     <xs:attribute type="xs:string" use="optional" name="DisplayCurrency"/>
     <xs:attribute type="xs:string" use="optional" name="MaxResultsQty"/>
   </xs:complexType>
 </xs:element>
 
    public static class ProcessingInfo
    {
        private Boolean summaryResultsInd;
        private String displayCurrency;
        private String maxResultsQty;

        
Get the 'SummaryResultsInd' attribute value. If true, summary information is requested in the search results.(Developer Notes) An agreement should be in place with your trading partners that specifies what information is summary versus detail.

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

        
Set the 'SummaryResultsInd' attribute value. If true, summary information is requested in the search results.(Developer Notes) An agreement should be in place with your trading partners that specifies what information is summary versus detail.

Parameters:
summaryResultsInd
        public void setSummaryResultsInd(Boolean summaryResultsInd) {
            this. = summaryResultsInd;
        }

        
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 '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;
        }
    }
    
Golf facility and tee time search criteria. 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="Criteria" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:choice>
         <xs:element name="Location" minOccurs="0">
           <!-- Reference to inner class Location -->
         </xs:element>
         <xs:element name="Proximity" minOccurs="0" maxOccurs="99">
           <!-- Reference to inner class Proximity -->
         </xs:element>
       </xs:choice>
       <xs:element name="Features" minOccurs="0">
         <!-- Reference to inner class Features -->
       </xs:element>
       <xs:element type="ns:GolfAmenitySummaryType" name="Amenities" minOccurs="0" maxOccurs="99"/>
     </xs:sequence>
     <xs:attribute type="xs:string" use="optional" name="ID"/>
     <xs:attribute type="xs:string" use="optional" name="Name"/>
   </xs:complexType>
 </xs:element>
 
    public static class Criteria
    {
        private int choiceSelect = -1;
        private static final int LOCATION_CHOICE = 0;
        private static final int PROXIMITY_LIST_CHOICE = 1;
        private Location location;
        private List<ProximityproximityList = new ArrayList<Proximity>();
        private Features features;
        private List<GolfAmenitySummaryamenityList = new ArrayList<GolfAmenitySummary>();
        private String ID;
        private String name;
        private void setChoiceSelect(int choice) {
            if ( == -1) {
                 = choice;
            } else if ( != choice) {
                throw new IllegalStateException(
                        "Need to call clearChoiceSelect() before changing existing choice");
            }
        }

        
Clear the choice selection.
        public void clearChoiceSelect() {
             = -1;
        }

        
Check if Location is current selection for choice.

Returns:
true if selection, false if not
        public boolean ifLocation() {
            return  == ;
        }

        
Get the 'Location' element value. A choice between entering specific address information the golf facility or proximity reference point information.

Returns:
value
        public Location getLocation() {
            return ;
        }

        
Set the 'Location' element value. A choice between entering specific address information the golf facility or proximity reference point information.

Parameters:
location
        public void setLocation(Location location) {
            setChoiceSelect();
            this. = location;
        }

        
Check if ProximityList is current selection for choice.

Returns:
true if selection, false if not
        public boolean ifProximityList() {
            return  == ;
        }

        
Get the list of 'Proximity' element items. A choice between entering specific address information the golf facility or proximity reference point information.

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

        
Set the list of 'Proximity' element items. A choice between entering specific address information the golf facility or proximity reference point information.

Parameters:
list
        public void setProximityList(List<Proximitylist) {
            setChoiceSelect();
             = list;
        }

        
Get the number of 'Proximity' element items.

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

        
Add a 'Proximity' element item.

Parameters:
item
        public void addProximity(Proximity item) {
            .add(item);
        }

        
Get 'Proximity' element item by position.

Parameters:
index
Returns:
item
        public Proximity getProximity(int index) {
            return .get(index);
        }

        
Remove all 'Proximity' element items.
        public void clearProximityList() {
            .clear();
        }

        
Get the 'Features' element value.

Returns:
value
        public Features getFeatures() {
            return ;
        }

        
Set the 'Features' element value.

Parameters:
features
        public void setFeatures(Features features) {
            this. = features;
        }

        
Get the list of 'Amenities' element items. Amenities available at the golf facility. Note, these amenities typically apply to all tee times at the facility.

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

        
Set the list of 'Amenities' element items. Amenities available at the golf facility. Note, these amenities typically apply to all tee times at the facility.

Parameters:
list
        public void setAmenityList(List<GolfAmenitySummarylist) {
             = list;
        }

        
Get the number of 'Amenities' element items.

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

        
Add a 'Amenities' element item.

Parameters:
item
        public void addAmenity(GolfAmenitySummary item) {
            .add(item);
        }

        
Get 'Amenities' element item by position.

Parameters:
index
Returns:
item
        public GolfAmenitySummary getAmenity(int index) {
            return .get(index);
        }

        
Remove all 'Amenities' element items.
        public void clearAmenityList() {
            .clear();
        }

        
Get the 'ID' attribute value. The ID of the facility or course.

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

        
Set the 'ID' attribute value. The ID of the facility or course.

Parameters:
ID
        public void setID(String ID) {
            this. = ID;
        }

        
Get the 'Name' attribute value. The full or partial name of the golf facility or course.

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

        
Set the 'Name' attribute value. The full or partial name of the golf facility or course.

Parameters:
name
        public void setName(String name) {
            this. = name;
        }
        
Address and geocoding information for the golf facility. 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="Location" minOccurs="0">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:AddressType">
         <xs:attributeGroup ref="ns:PositionGroup"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
        public static class Location extends Address
        {
            private PositionGroup positionGroup;

            
Get the 'PositionGroup' attributeGroup value.

Returns:
value
            public PositionGroup getPositionGroup() {
                return ;
            }

            
Set the 'PositionGroup' attributeGroup value.

Parameters:
positionGroup
            public void setPositionGroup(PositionGroup positionGroup) {
                this. = positionGroup;
            }
        }
        
Reference point information for a proximity search. 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="Proximity" minOccurs="0" maxOccurs="99">
   <xs:complexType>
     <xs:simpleContent>
       <xs:extension base="xs:string">
         <xs:attribute type="xs:anySimpleType" name="PostalCode"/>
         <xs:attribute type="xs:string" use="optional" name="CityName"/>
         <xs:attribute type="xs:string" use="optional" name="StateProv"/>
         <xs:attribute type="xs:string" use="optional" name="CountryCode"/>
         <xs:attribute type="xs:string" use="optional" name="ResortName"/>
         <xs:attribute type="xs:string" use="optional" name="RefPointType"/>
         <xs:attribute type="xs:string" use="optional" name="Name"/>
         <xs:attributeGroup ref="ns:DistanceAttributesGroup"/>
       </xs:extension>
     </xs:simpleContent>
   </xs:complexType>
 </xs:element>
 
        public static class Proximity
        {
            private String string;
            private String postalCode;
            private String cityName;
            private String stateProv;
            private String countryCode;
            private String resortName;
            private String refPoint;
            private String name;
            private DistanceAttributesGroup distanceAttributesGroup;

            
Get the extension value.

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

            
Set the extension value.

Parameters:
string
            public void setString(String string) {
                this. = string;
            }

            
Get the 'PostalCode' attribute value. A postal code used for a proximity search.

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

            
Set the 'PostalCode' attribute value. A postal code used for a proximity search.

Parameters:
postalCode
            public void setPostalCode(String postalCode) {
                this. = postalCode;
            }

            
Get the 'CityName' attribute value. The name of the city associated with this reference point.

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

            
Set the 'CityName' attribute value. The name of the city associated with this reference point.

Parameters:
cityName
            public void setCityName(String cityName) {
                this. = cityName;
            }

            
Get the 'StateProv' attribute value. The state or province in which the reference point is located.

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

            
Set the 'StateProv' attribute value. The state or province in which the reference point is located.

Parameters:
stateProv
            public void setStateProv(String stateProv) {
                this. = stateProv;
            }

            
Get the 'CountryCode' attribute value. The country in which the reference point is located.

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

            
Set the 'CountryCode' attribute value. The country in which the reference point is located.

Parameters:
countryCode
            public void setCountryCode(String countryCode) {
                this. = countryCode;
            }

            
Get the 'ResortName' attribute value. The name of a resort that the golf course is associated with.

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

            
Set the 'ResortName' attribute value. The name of a resort that the golf course is associated with.

Parameters:
resortName
            public void setResortName(String resortName) {
                this. = resortName;
            }

            
Get the 'RefPointType' attribute value. Indicates the type of location being referenced (e.g., Airport, Hotel). Refer to the OpenTravel Code table Index Point Code (IPC).

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

            
Set the 'RefPointType' attribute value. Indicates the type of location being referenced (e.g., Airport, Hotel). Refer to the OpenTravel Code table Index Point Code (IPC).

Parameters:
refPoint
            public void setRefPoint(String refPoint) {
                this. = refPoint;
            }

            
Get the 'Name' attribute value. The name of the reference point.

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

            
Set the 'Name' attribute value. The name of the reference point.

Parameters:
name
            public void setName(String name) {
                this. = name;
            }

            
Get the 'DistanceAttributesGroup' attributeGroup value.

Returns:
value
            public DistanceAttributesGroup getDistanceAttributesGroup() {
                return ;
            }

            
Set the 'DistanceAttributesGroup' attributeGroup value.

Parameters:
distanceAttributesGroup
            public void setDistanceAttributesGroup(
                    DistanceAttributesGroup distanceAttributesGroup) {
                this. = distanceAttributesGroup;
            }
        }
        
Facility course description and features information. 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="Features" minOccurs="0">
   <xs:complexType>
     <xs:attribute type="xs:boolean" use="optional" name="DrivingRangeInd"/>
     <xs:attribute type="xs:boolean" use="optional" name="DiningInd"/>
     <xs:attribute type="xs:boolean" use="optional" name="GolfProInd"/>
     <xs:attribute type="xs:string" use="optional" name="CourseDesigner"/>
   </xs:complexType>
 </xs:element>
 
        public static class Features
        {
            private Boolean drivingRangeInd;
            private Boolean diningInd;
            private Boolean golfProInd;
            private String courseDesigner;

            
Get the 'DrivingRangeInd' attribute value. If true, a golf facility with a driving range is requested.

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

            
Set the 'DrivingRangeInd' attribute value. If true, a golf facility with a driving range is requested.

Parameters:
drivingRangeInd
            public void setDrivingRangeInd(Boolean drivingRangeInd) {
                this. = drivingRangeInd;
            }

            
Get the 'DiningInd' attribute value. If true, a golf facility with a dining facility is requested.

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

            
Set the 'DiningInd' attribute value. If true, a golf facility with a dining facility is requested.

Parameters:
diningInd
            public void setDiningInd(Boolean diningInd) {
                this. = diningInd;
            }

            
Get the 'GolfProInd' attribute value. If true, a golf facility with a golf pro (or golf training) is requested.

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

            
Set the 'GolfProInd' attribute value. If true, a golf facility with a golf pro (or golf training) is requested.

Parameters:
golfProInd
            public void setGolfProInd(Boolean golfProInd) {
                this. = golfProInd;
            }

            
Get the 'CourseDesigner' attribute value. If included, golf facility(s) by this designer should be included in search results.

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

            
Set the 'CourseDesigner' attribute value. If included, golf facility(s) by this designer should be included in search results.

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