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 Facility Information response returns detailed golf facility information for the specified facility ID(s). Response information includes: » Facility ID, name and associated facility (if the course is on a hotel property) » Short and long descriptions (with optional club type) » Contact information, including phone and website » Multimedia, including images, descriptions and movies that describe the golf facility » Facility features, including dress policy, golf pros, on facility dining and course designer » Available amenities, including type, description, pricing and reservation information » Guideline tee time pricing, including minimum, maximum and average » Location information, including physical and geo-coding » Hours of operation » Course conditions, including an optional source name or URL » Policy information » Directions » Course closures » Course restrictions » Course scorecard Additional message functionality includes transaction processing directives that influenced search results, such as display currency. Developer Notes: » This message may also include Warnings from business processing rules or Errors if the request did not succeed. 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_GolfFacilityInfoRS">
   <xs:complexType>
     <xs:choice>
       <xs:sequence>
         <xs:element type="ns:SuccessType" name="Success"/>
         <xs:element type="ns:WarningsType" name="Warnings" minOccurs="0"/>
         <xs:element name="GolfCourse" minOccurs="0" maxOccurs="unbounded">
           <!-- Reference to inner class GolfCourse -->
         </xs:element>
       </xs:sequence>
       <xs:element type="ns:ErrorsType" name="Errors"/>
     </xs:choice>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 
 
 public class FacilityInfoRS
 {
     private int choiceSelect = -1;
     private static final int SUCCESS_CHOICE = 0;
     private static final int ERRORS_CHOICE = 1;
     private Success success;
     private Warnings warnings;
     private List<GolfCoursegolfCourseList = new ArrayList<GolfCourse>();
     private Errors errors;
 
     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 Success is current selection for choice.

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

    
Get the 'Success' element value. Success: Standard way to indicate successful processing of an OpenTravel message. Returning an empty element of this type indicates success.

Returns:
value
 
     public Success getSuccess() {
         return ;
     }

    
Set the 'Success' element value. Success: Standard way to indicate successful processing of an OpenTravel message. Returning an empty element of this type indicates success.

Parameters:
success
    public void setSuccess(Success success) {
        this. = success;
    }

    
Get the 'Warnings' element value. Standard way to indicate successful processing of an OpenTravel message, but one in which warnings are generated.

Returns:
value
    public Warnings getWarnings() {
        return ;
    }

    
Set the 'Warnings' element value. Standard way to indicate successful processing of an OpenTravel message, but one in which warnings are generated.

Parameters:
warnings
    public void setWarnings(Warnings warnings) {
        this. = warnings;
    }

    
Get the list of 'GolfCourse' element items.

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

    
Set the list of 'GolfCourse' element items.

Parameters:
list
    public void setGolfCourseList(List<GolfCourselist) {
         = list;
    }

    
Get the number of 'GolfCourse' element items.

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

    
Add a 'GolfCourse' element item.

Parameters:
item
    public void addGolfCourse(GolfCourse item) {
        .add(item);
    }

    
Get 'GolfCourse' element item by position.

Parameters:
index
Returns:
item
    public GolfCourse getGolfCourse(int index) {
        return .get(index);
    }

    
Remove all 'GolfCourse' element items.
    public void clearGolfCourseList() {
        .clear();
    }

    
Check if Errors is current selection for choice.

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

    
Get the 'Errors' element value. A collection of errors that occurred during the processing of a message.

Returns:
value
    public Errors getErrors() {
        return ;
    }

    
Set the 'Errors' element value. A collection of errors that occurred during the processing of a message.

Parameters:
errors
    public void setErrors(Errors errors) {
        this. = errors;
    }

    
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;
    }
    
Information for the requested golf facility(s). 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="GolfCourse" minOccurs="0" maxOccurs="unbounded">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:GolfFacilityType">
         <xs:attribute type="xs:boolean" use="optional" name="FeaturedInd"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
    public static class GolfCourse extends GolfFacility
    {
        private Boolean featuredInd;

        
Get the 'FeaturedInd' attribute value. If true, this facility has been marked as a featured course by the supplier.

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

        
Set the 'FeaturedInd' attribute value. If true, this facility has been marked as a featured course by the supplier.

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