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 response provides availability for specified golf facility(s) and tee time(s). Additional message functionality includes transaction processing directives that influence search results, such as display currency and maximum quantity of results. 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_GolfCourseAvailRS">
   <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="ProcessingInfo" minOccurs="0">
           <!-- Reference to inner class ProcessingInfo -->
         </xs:element>
         <xs:element name="GolfFacility" minOccurs="0" maxOccurs="unbounded">
           <!-- Reference to inner class GolfFacility -->
         </xs:element>
         <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
       </xs:sequence>
       <xs:element type="ns:ErrorsType" name="Errors"/>
     </xs:choice>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 
 
 public class CourseAvailRS
 {
     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 ProcessingInfo processingInfo;
     private List<GolfFacilitygolfFacilityList = new ArrayList<GolfFacility>();
     private TPAExtensions TPAExtensions;
     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) {
         setChoiceSelect();
         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 '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 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;
    }

    
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;
    }
    
Transaction processing information, including display currency overrides. If no display or pricing currency information is provided, the display 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:boolean" use="optional" name="SummaryResultsInd"/>
     <xs:attribute type="xs:string" use="optional" name="DisplayCurrency"/>
   </xs:complexType>
 </xs:element>
 
    public static class ProcessingInfo
    {
        private Boolean summaryResultsInd;
        private String displayCurrency;

        
Get the 'SummaryResultsInd' attribute value. If true, summary information has been returned 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 has been returned 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;
        }
    }
    
One or more golf facility(s) with available tee time round(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="GolfFacility" minOccurs="0" maxOccurs="unbounded">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:GolfFacilityType" name="FacilityInfo"/>
       <xs:element type="ns:TeeTimeType" name="TeeTime" maxOccurs="99"/>
       <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
    public static class GolfFacility
    {
        private List<TeeTimeteeTimeList = new ArrayList<TeeTime>();
        private TPAExtensions TPAExtensions;

        
Get the 'FacilityInfo' element value. Information that describes the golf facility, including the unique facility ID.

Returns:
value
            return ;
        }

        
Set the 'FacilityInfo' element value. Information that describes the golf facility, including the unique facility ID.

Parameters:
facilityInfo
        public void setFacilityInfo(
                org.jibx.schema.org.opentravel._2012A.golf.GolfFacility facilityInfo) {
            this. = facilityInfo;
        }

        
Get the list of 'TeeTime' element items. One or more tee time(s) with availability and pricing.

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

        
Set the list of 'TeeTime' element items. One or more tee time(s) with availability and pricing.

Parameters:
list
        public void setTeeTimeList(List<TeeTimelist) {
             = 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(TeeTime item) {
            .add(item);
        }

        
Get 'TeeTime' element item by position.

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

        
Remove all 'TeeTime' element items.
        public void clearTeeTimeList() {
            .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;
        }
    }
New to GrepCode? Check out our FAQ X