Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   
   package org.jibx.schema.org.opentravel._2012A.golf;
   
   import java.util.ArrayList;
   import java.util.List;
A single round of golf that may include one or more golfers. If there is more than one round, each round will be represented separately. Schema fragment(s) for this class:
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="TeeTimeType">
   <xs:sequence>
     <xs:element type="ns:GolferType" name="Golfer" minOccurs="0" maxOccurs="99"/>
     <xs:element name="Charge" minOccurs="0" maxOccurs="99">
       <!-- Reference to inner class Charge -->
     </xs:element>
     <xs:element name="Discounts" minOccurs="0" maxOccurs="99">
       <!-- Reference to inner class Discounts -->
     </xs:element>
     <xs:element name="Amenity" minOccurs="0" maxOccurs="99">
       <!-- Reference to inner class Amenity -->
     </xs:element>
     <xs:element name="Policy" minOccurs="0" maxOccurs="unbounded">
       <!-- Reference to inner class Policy -->
     </xs:element>
   </xs:sequence>
   <xs:attribute type="xs:string" use="optional" name="RoundID"/>
   <xs:attribute type="xs:string" use="optional" name="GolferQty"/>
   <xs:attribute type="xs:string" use="optional" name="PackageID"/>
   <xs:attributeGroup ref="ns:DateTimeSpanGroup"/>
   <xs:attribute type="xs:string" use="optional" name="StartingTee"/>
   <xs:attribute type="xs:string" use="optional" name="NumberOfHoles"/>
   <xs:attribute type="xs:string" use="optional" name="CartQty"/>
   <xs:attribute type="xs:string" use="optional" name="ReplayRoundQty"/>
   <xs:attribute type="xs:boolean" use="optional" name="DisabledInd"/>
 </xs:complexType>
 
  
  public class TeeTime
  {
      private List<GolfergolferList = new ArrayList<Golfer>();
      private List<ChargechargeList = new ArrayList<Charge>();
      private List<DiscountsdiscountList = new ArrayList<Discounts>();
      private List<AmenityamenityList = new ArrayList<Amenity>();
      private List<PolicypolicyList = new ArrayList<Policy>();
      private String roundID;
      private String golferQty;
      private String packageID;
      private DateTimeSpanGroup dateTimeSpanGroup;
      private String startingTee;
      private String numberOfHoles;
      private String cartQty;
      private String replayRoundQty;
      private Boolean disabledInd;

    
Get the list of 'Golfer' element items. Detailed information about individuals participating in the tee time round or general golfer category information.

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

    
Set the list of 'Golfer' element items. Detailed information about individuals participating in the tee time round or general golfer category information.

Parameters:
list
  
      public void setGolferList(List<Golferlist) {
           = list;
      }

    
Get the number of 'Golfer' element items.

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

    
Add a 'Golfer' element item.

Parameters:
item
  
      public void addGolfer(Golfer item) {
          .add(item);
     }

    
Get 'Golfer' element item by position.

Parameters:
index
Returns:
item
 
     public Golfer getGolfer(int index) {
         return .get(index);
     }

    
Remove all 'Golfer' element items.
 
     public void clearGolferList() {
         .clear();
     }

    
Get the list of 'Charge' element items.

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

    
Set the list of 'Charge' element items.

Parameters:
list
 
     public void setChargeList(List<Chargelist) {
          = list;
     }

    
Get the number of 'Charge' element items.

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

    
Add a 'Charge' element item.

Parameters:
item
 
     public void addCharge(Charge item) {
         .add(item);
     }

    
Get 'Charge' element item by position.

Parameters:
index
Returns:
item
 
     public Charge getCharge(int index) {
         return .get(index);
     }

    
Remove all 'Charge' element items.
 
     public void clearChargeList() {
         .clear();
     }

    
Get the list of 'Discounts' element items.

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

    
Set the list of 'Discounts' element items.

Parameters:
list
 
     public void setDiscountList(List<Discountslist) {
          = list;
     }

    
Get the number of 'Discounts' element items.

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

    
Add a 'Discounts' element item.

Parameters:
item
 
     public void addDiscount(Discounts item) {
         .add(item);
     }

    
Get 'Discounts' element item by position.

Parameters:
index
Returns:
item
 
     public Discounts getDiscount(int index) {
         return .get(index);
     }

    
Remove all 'Discounts' element items.
 
     public void clearDiscountList() {
         .clear();
     }

    
Get the list of 'Amenity' element items.

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

    
Set the list of 'Amenity' element items.

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

    
Get the number of 'Amenity' element items.

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

    
Add a 'Amenity' element item.

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

    
Get 'Amenity' element item by position.

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

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

    
Get the list of 'Policy' element items.

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

    
Set the list of 'Policy' element items.

Parameters:
list
 
     public void setPolicyList(List<Policylist) {
          = list;
     }

    
Get the number of 'Policy' element items.

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

    
Add a 'Policy' element item.

Parameters:
item
 
     public void addPolicy(Policy item) {
         .add(item);
     }

    
Get 'Policy' element item by position.

Parameters:
index
Returns:
item
 
     public Policy getPolicy(int index) {
         return .get(index);
     }

    
Remove all 'Policy' element items.
 
     public void clearPolicyList() {
         .clear();
     }

    
Get the 'RoundID' attribute value. A unique identifier applied to this tee time round.

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

    
Set the 'RoundID' attribute value. A unique identifier applied to this tee time round.

Parameters:
roundID
 
     public void setRoundID(String roundID) {
         this. = roundID;
     }

    
Get the 'GolferQty' attribute value. The number of golfers represented in this tee time round.

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

    
Set the 'GolferQty' attribute value. The number of golfers represented in this tee time round.

Parameters:
golferQty
 
     public void setGolferQty(String golferQty) {
         this. = golferQty;
     }

    
Get the 'PackageID' attribute value. An identification of a package of which this tee time round is a part of.

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

    
Set the 'PackageID' attribute value. An identification of a package of which this tee time round is a part of.

Parameters:
packageID
 
     public void setPackageID(String packageID) {
         this. = packageID;
     }

    
Get the 'DateTimeSpanGroup' attributeGroup value. The date and time for which the tee time round is reserved.

Returns:
value
 
         return ;
     }

    
Set the 'DateTimeSpanGroup' attributeGroup value. The date and time for which the tee time round is reserved.

Parameters:
dateTimeSpanGroup
 
     public void setDateTimeSpanGroup(DateTimeSpanGroup dateTimeSpanGroup) {
         this. = dateTimeSpanGroup;
     }

    
Get the 'StartingTee' attribute value. The tee on which the round will start. This could be a hole number, or a course designation where there are multiple courses.

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

    
Set the 'StartingTee' attribute value. The tee on which the round will start. This could be a hole number, or a course designation where there are multiple courses.

Parameters:
startingTee
 
     public void setStartingTee(String startingTee) {
         this. = startingTee;
     }

    
Get the 'NumberOfHoles' attribute value. The number of holes that the golfers wish to play within one round. If this differs by day, separate messages must be sent.

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

    
Set the 'NumberOfHoles' attribute value. The number of holes that the golfers wish to play within one round. If this differs by day, separate messages must be sent.

Parameters:
numberOfHoles
 
     public void setNumberOfHoles(String numberOfHoles) {
         this. = numberOfHoles;
     }

    
Get the 'CartQty' attribute value. The number of carts included with the tee time.

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

    
Set the 'CartQty' attribute value. The number of carts included with the tee time.

Parameters:
cartQty
 
     public void setCartQty(String cartQty) {
         this. = cartQty;
     }

    
Get the 'ReplayRoundQty' attribute value. The number of tee times covered by this request.(Example) If a foursome wants to play two separate rounds within one day, the number of tee times would be 2.

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

    
Set the 'ReplayRoundQty' attribute value. The number of tee times covered by this request.(Example) If a foursome wants to play two separate rounds within one day, the number of tee times would be 2.

Parameters:
replayRoundQty
 
     public void setReplayRoundQty(String replayRoundQty) {
         this. = replayRoundQty;
     }

    
Get the 'DisabledInd' attribute value. If true, the golf facility accommodates physically challenged individuals.

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

    
Set the 'DisabledInd' attribute value. If true, the golf facility accommodates physically challenged individuals.

Parameters:
disabledInd
 
     public void setDisabledInd(Boolean disabledInd) {
         this. = disabledInd;
     }
    
Charge information for the tee time round of golf, including amount or percentage, description and tax included/ amount. Note individual charges may be associated to individual golfers by referencing the Golfer/@RPH that the charge applies to. 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="Charge" minOccurs="0" maxOccurs="99">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="TaxAmounts" minOccurs="0">
         <!-- Reference to inner class TaxAmounts -->
       </xs:element>
       <xs:element type="ns:ParagraphType" name="Description" minOccurs="0" maxOccurs="5"/>
       <xs:element name="Calculation" minOccurs="0" maxOccurs="5">
         <!-- Reference to inner class Calculation -->
       </xs:element>
     </xs:sequence>
     <xs:attributeGroup ref="ns:CurrencyAmountGroup"/>
     <xs:attribute type="xs:boolean" use="optional" name="TaxInclusive"/>
     <xs:attribute type="xs:boolean" use="optional" name="GuaranteedInd"/>
     <xs:attribute type="xs:boolean" use="optional" name="RateConvertInd"/>
     <xs:attribute type="xs:string" use="optional" name="GolferRPH"/>
   </xs:complexType>
 </xs:element>
 
 
     public static class Charge
     {
         private TaxAmounts taxAmounts;
         private List<ParagraphdescriptionList = new ArrayList<Paragraph>();
         private List<CalculationcalculationList = new ArrayList<Calculation>();
         private CurrencyAmountGroup currencyAmountGroup;
         private Boolean taxInclusive;
         private Boolean guaranteedInd;
         private Boolean rateConvertInd;
         private String golferRPH;

        
Get the 'TaxAmounts' element value.

Returns:
value
 
         public TaxAmounts getTaxAmounts() {
             return ;
         }

        
Set the 'TaxAmounts' element value.

Parameters:
taxAmounts
 
         public void setTaxAmounts(TaxAmounts taxAmounts) {
             this. = taxAmounts;
         }

        
Get the list of 'Description' element items. Text description of the fees in a given language.

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

        
Set the list of 'Description' element items. Text description of the fees in a given language.

Parameters:
list
 
         public void setDescriptionList(List<Paragraphlist) {
              = list;
         }

        
Get the number of 'Description' element items.

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

        
Add a 'Description' element item.

Parameters:
item
 
         public void addDescription(Paragraph item) {
             .add(item);
         }

        
Get 'Description' element item by position.

Parameters:
index
Returns:
item
 
         public Paragraph getDescription(int index) {
             return .get(index);
         }

        
Remove all 'Description' element items.
 
         public void clearDescriptionList() {
             .clear();
         }

        
Get the list of 'Calculation' element items.

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

        
Set the list of 'Calculation' element items.

Parameters:
list
 
         public void setCalculationList(List<Calculationlist) {
              = list;
         }

        
Get the number of 'Calculation' element items.

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

        
Add a 'Calculation' element item.

Parameters:
item
 
         public void addCalculation(Calculation item) {
             .add(item);
         }

        
Get 'Calculation' element item by position.

Parameters:
index
Returns:
item
 
         public Calculation getCalculation(int index) {
             return .get(index);
         }

        
Remove all 'Calculation' element items.
 
         public void clearCalculationList() {
             .clear();
         }

        
Get the 'CurrencyAmountGroup' attributeGroup value.

Returns:
value
 
         public CurrencyAmountGroup getCurrencyAmountGroup() {
             return ;
         }

        
Set the 'CurrencyAmountGroup' attributeGroup value.

Parameters:
currencyAmountGroup
 
         public void setCurrencyAmountGroup(
                 CurrencyAmountGroup currencyAmountGroup) {
             this. = currencyAmountGroup;
         }

        
Get the 'TaxInclusive' attribute value. If true, taxes are included in this charge.

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

        
Set the 'TaxInclusive' attribute value. If true, taxes are included in this charge.

Parameters:
taxInclusive
 
         public void setTaxInclusive(Boolean taxInclusive) {
             this. = taxInclusive;
         }

        
Get the 'GuaranteedInd' attribute value. If true, a guarantee payment or hold is required.

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

        
Set the 'GuaranteedInd' attribute value. If true, a guarantee payment or hold is required.

Parameters:
guaranteedInd
 
         public void setGuaranteedInd(Boolean guaranteedInd) {
             this. = guaranteedInd;
         }

        
Get the 'RateConvertInd' attribute value. When true, the rate has been converted to a different currency.

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

        
Set the 'RateConvertInd' attribute value. When true, the rate has been converted to a different currency.

Parameters:
rateConvertInd
 
         public void setRateConvertInd(Boolean rateConvertInd) {
             this. = rateConvertInd;
         }

        
Get the 'GolferRPH' attribute value. A unique ID that identifies the golfer that this charge is associated with.

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

        
Set the 'GolferRPH' attribute value. A unique ID that identifies the golfer that this charge is associated with.

Parameters:
golferRPH
 
         public void setGolferRPH(String golferRPH) {
             this. = golferRPH;
         }
        
A collection of one or more taxes associated with a specific charge. 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="TaxAmounts" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="TaxAmount" maxOccurs="99">
         <xs:complexType>
           <xs:attributeGroup ref="ns:GolfTaxAmountGroup"/>
         </xs:complexType>
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
 
         public static class TaxAmounts
         {
             private List<GolfTaxAmountGrouptaxAmountList = new ArrayList<GolfTaxAmountGroup>();

            
Get the list of 'TaxAmount' element items. Detailed information on one specific tax associated with a specific charge.

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

            
Set the list of 'TaxAmount' element items. Detailed information on one specific tax associated with a specific charge.

Parameters:
list
 
             public void setTaxAmountList(List<GolfTaxAmountGrouplist) {
                  = list;
             }

            
Get the number of 'TaxAmount' element items.

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

            
Add a 'TaxAmount' element item.

Parameters:
item
 
             public void addTaxAmount(GolfTaxAmountGroup item) {
                 .add(item);
             }

            
Get 'TaxAmount' element item by position.

Parameters:
index
Returns:
item
 
             public GolfTaxAmountGroup getTaxAmount(int index) {
                 return .get(index);
             }

            
Remove all 'TaxAmount' element items.
 
             public void clearTaxAmountList() {
                 .clear();
             }
         }
        
Information on how this charge was calculated, for example, a daily rate multiplied by the number of players, a percentage, etc. 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="Calculation" minOccurs="0" maxOccurs="5">
   <xs:complexType>
     <xs:attribute type="xs:float" use="optional" name="UnitCharge"/>
     <xs:attribute type="xs:string" use="optional" name="UnitName"/>
     <xs:attribute type="xs:int" use="optional" name="Quantity"/>
     <xs:attribute type="xs:float" use="optional" name="Percentage"/>
     <xs:attribute use="optional" name="Applicability">
       <xs:simpleType>
         <!-- Reference to inner class Applicability -->
       </xs:simpleType>
     </xs:attribute>
     <xs:attribute type="xs:int" use="optional" name="MaxQuantity"/>
     <xs:attribute type="xs:float" use="optional" name="Total"/>
   </xs:complexType>
 </xs:element>
 
 
         public static class Calculation
         {
             private Float unitCharge;
             private String unitName;
             private Integer quantity;
             private Float percentage;
             private Applicability applicability;
             private Integer maxQuantity;
             private Float total;

            
Get the 'UnitCharge' attribute value. This is used in conjunction with UnitName to specify the charge per unit as defined by UnitName (e.g., if UnitCharge="100" and UnitName="day" the result is 100 dollars per day).

Returns:
value
 
             public Float getUnitCharge() {
                 return ;
             }

            
Set the 'UnitCharge' attribute value. This is used in conjunction with UnitName to specify the charge per unit as defined by UnitName (e.g., if UnitCharge="100" and UnitName="day" the result is 100 dollars per day).

Parameters:
unitCharge
 
             public void setUnitCharge(Float unitCharge) {
                 this. = unitCharge;
             }

            
Get the 'UnitName' attribute value. The UnitName attribute provides the unit on which an item charge may be based when purchasing a round of golf.

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

            
Set the 'UnitName' attribute value. The UnitName attribute provides the unit on which an item charge may be based when purchasing a round of golf.

Parameters:
unitName
 
             public void setUnitName(String unitName) {
                 this. = unitName;
             }

            
Get the 'Quantity' attribute value. This is used in conjunction with UnitName to specify the quantity of units as defined by UnitName (e.g., if Quantity="5" and UnitName="day" the result is 5 days).

Returns:
value
 
             public Integer getQuantity() {
                 return ;
             }

            
Set the 'Quantity' attribute value. This is used in conjunction with UnitName to specify the quantity of units as defined by UnitName (e.g., if Quantity="5" and UnitName="day" the result is 5 days).

Parameters:
quantity
 
             public void setQuantity(Integer quantity) {
                 this. = quantity;
             }

            
Get the 'Percentage' attribute value. Provides the ability to define a particular percentage.

Returns:
value
 
             public Float getPercentage() {
                 return ;
             }

            
Set the 'Percentage' attribute value. Provides the ability to define a particular percentage.

Parameters:
percentage
 
             public void setPercentage(Float percentage) {
                 this. = percentage;
             }

            
Get the 'Applicability' attribute value. Indicates a time or a place of reference (e.g. before pick-up, drop-off location).

Returns:
value
 
             public Applicability getApplicability() {
                 return ;
             }

            
Set the 'Applicability' attribute value. Indicates a time or a place of reference (e.g. before pick-up, drop-off location).

Parameters:
applicability
 
             public void setApplicability(Applicability applicability) {
                 this. = applicability;
             }

            
Get the 'MaxQuantity' attribute value. This is used in conjunction with UnitName to specify the maximum quantity of units as defined by UnitName.

Returns:
value
 
             public Integer getMaxQuantity() {
                 return ;
             }

            
Set the 'MaxQuantity' attribute value. This is used in conjunction with UnitName to specify the maximum quantity of units as defined by UnitName.

Parameters:
maxQuantity
 
             public void setMaxQuantity(Integer maxQuantity) {
                 this. = maxQuantity;
             }

            
Get the 'Total' attribute value. The total for a specific item in a calculation.

Returns:
value
 
             public Float getTotal() {
                 return ;
             }

            
Set the 'Total' attribute value. The total for a specific item in a calculation.

Parameters:
total
 
             public void setTotal(Float total) {
                 this. = total;
             }
            
Schema fragment(s) for this class:
 <xs:simpleType xmlns:xs="http://www.w3.org/2001/XMLSchema">
   <xs:restriction base="xs:string">
     <xs:enumeration value="FromPickupLocation"/>
     <xs:enumeration value="FromDropoffLocation"/>
     <xs:enumeration value="BeforePickup"/>
     <xs:enumeration value="AfterDropoff"/>
   </xs:restriction>
 </xs:simpleType>
 
 
             public static enum Applicability {
                
Distances are referenced from the pick-up location.
 
                 FROM_PICKUP_LOCATION("FromPickupLocation"), 
Distances are referenced from the drop-off location.
 
                 FROM_DROPOFF_LOCATION("FromDropoffLocation"), 
Times are referenced from the pick-up time.
 
                 BEFORE_PICKUP("BeforePickup"), 
Times are referenced from the drop-off time.
 
                 AFTER_DROPOFF("AfterDropoff");
                 private final String value;
 
                 private Applicability(String value) {
                     this. = value;
                 }
 
                 public String xmlValue() {
                     return ;
                 }
 
                 public static Applicability convert(String value) {
                     for (Applicability inst : values()) {
                         if (inst.xmlValue().equals(value)) {
                             return inst;
                         }
                     }
                     return null;
                 }
             }
         }
     }
    
Promotions and other rate qualifying discounts for determining availability and pricing of this tee time round. Note that promotions may be tied to individual golfers or to the tee time as a whole. 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="Discounts" minOccurs="0" maxOccurs="99">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:RateQualifierType">
         <xs:attribute type="xs:string" use="optional" name="GolferRPH"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
    public static class Discounts extends RateQualifier
    {
        private String golferRPH;

        
Get the 'GolferRPH' attribute value. A reference to a unique golfer defined in Golfer/@RPH.

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

        
Set the 'GolferRPH' attribute value. A reference to a unique golfer defined in Golfer/@RPH.

Parameters:
golferRPH
        public void setGolferRPH(String golferRPH) {
            this. = golferRPH;
        }
    }
    
Amenities associated with this tee time round. Note that amenities may be tied to individual golfers or to the tee time as a whole. 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="Amenity" minOccurs="0" maxOccurs="99">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:GolfAmenityType">
         <xs:attribute type="xs:string" use="optional" name="GolferRPH"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
    public static class Amenity extends GolfAmenity
    {
        private String golferRPH;

        
Get the 'GolferRPH' attribute value. A reference to a unique golfer defined in Golfer/@RPH.

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

        
Set the 'GolferRPH' attribute value. A reference to a unique golfer defined in Golfer/@RPH.

Parameters:
golferRPH
        public void setGolferRPH(String golferRPH) {
            this. = golferRPH;
        }
    }
    
Describes the policies of the tee time round, such as cancellation. 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="Policy" minOccurs="0" maxOccurs="unbounded">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="General" minOccurs="0">
         <!-- Reference to inner class General -->
       </xs:element>
       <xs:element name="CancelPolicy" minOccurs="0">
         <!-- Reference to inner class CancelPolicy -->
       </xs:element>
       <xs:element type="ns:TaxType" name="TaxPolicy" minOccurs="0" maxOccurs="unbounded"/>
       <xs:element name="FeePolicies" minOccurs="0">
         <!-- Reference to inner class FeePolicies -->
       </xs:element>
     </xs:sequence>
     <xs:attributeGroup ref="ns:DateTimeSpanGroup"/>
     <xs:attribute type="xs:string" use="optional" name="Code"/>
     <xs:attribute type="xs:dateTime" use="optional" name="LastUpdated"/>
     <xs:attributeGroup ref="ns:DOW_PatternGroup"/>
   </xs:complexType>
 </xs:element>
 
    public static class Policy
    {
        private General general;
        private CancelPolicy cancelPolicy;
        private List<TaxtaxPolicyList = new ArrayList<Tax>();
        private FeePolicies feePolicies;
        private DateTimeSpanGroup dateTimeSpanGroup;
        private String code;
        private DateTime lastUpdated;
        private DOWPatternGroup DOWPatternGroup;

        
Get the 'General' element value.

Returns:
value
        public General getGeneral() {
            return ;
        }

        
Set the 'General' element value.

Parameters:
general
        public void setGeneral(General general) {
            this. = general;
        }

        
Get the 'CancelPolicy' element value.

Returns:
value
        public CancelPolicy getCancelPolicy() {
            return ;
        }

        
Set the 'CancelPolicy' element value.

Parameters:
cancelPolicy
        public void setCancelPolicy(CancelPolicy cancelPolicy) {
            this. = cancelPolicy;
        }

        
Get the list of 'TaxPolicy' element items. Defines tax policies for tee time pricing.

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

        
Set the list of 'TaxPolicy' element items. Defines tax policies for tee time pricing.

Parameters:
list
        public void setTaxPolicyList(List<Taxlist) {
             = list;
        }

        
Get the number of 'TaxPolicy' element items.

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

        
Add a 'TaxPolicy' element item.

Parameters:
item
        public void addTaxPolicy(Tax item) {
            .add(item);
        }

        
Get 'TaxPolicy' element item by position.

Parameters:
index
Returns:
item
        public Tax getTaxPolicy(int index) {
            return .get(index);
        }

        
Remove all 'TaxPolicy' element items.
        public void clearTaxPolicyList() {
            .clear();
        }

        
Get the 'FeePolicies' element value.

Returns:
value
        public FeePolicies getFeePolicies() {
            return ;
        }

        
Set the 'FeePolicies' element value.

Parameters:
feePolicies
        public void setFeePolicies(FeePolicies feePolicies) {
            this. = feePolicies;
        }

        
Get the 'DateTimeSpanGroup' attributeGroup value. Used to indicate the effective dates of the policy.

Returns:
value
        public DateTimeSpanGroup getDateTimeSpanGroup() {
            return ;
        }

        
Set the 'DateTimeSpanGroup' attributeGroup value. Used to indicate the effective dates of the policy.

Parameters:
dateTimeSpanGroup
        public void setDateTimeSpanGroup(DateTimeSpanGroup dateTimeSpanGroup) {
            this. = dateTimeSpanGroup;
        }

        
Get the 'Code' attribute value. The code identifying this policy.

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

        
Set the 'Code' attribute value. The code identifying this policy.

Parameters:
code
        public void setCode(String code) {
            this. = code;
        }

        
Get the 'LastUpdated' attribute value. The date and time when the policy information for this facility was last updated.

Returns:
value
        public DateTime getLastUpdated() {
            return ;
        }

        
Set the 'LastUpdated' attribute value. The date and time when the policy information for this facility was last updated.

Parameters:
lastUpdated
        public void setLastUpdated(DateTime lastUpdated) {
            this. = lastUpdated;
        }

        
Get the 'DOW_PatternGroup' attributeGroup value. Used to indicate the effective day for the policy.

Returns:
value
        public DOWPatternGroup getDOWPatternGroup() {
            return ;
        }

        
Set the 'DOW_PatternGroup' attributeGroup value. Used to indicate the effective day for the policy.

Parameters:
DOWPatternGroup
        public void setDOWPatternGroup(DOWPatternGroup DOWPatternGroup) {
            this. = DOWPatternGroup;
        }
        
A general policy description and optional policy type. 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="General" minOccurs="0">
   <xs:complexType>
     <xs:simpleContent>
       <xs:extension base="xs:string">
         <xs:attribute type="xs:string" use="optional" name="Type"/>
       </xs:extension>
     </xs:simpleContent>
   </xs:complexType>
 </xs:element>
 
        public static class General
        {
            private String string;
            private String type;

            
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 'Type' attribute value. The type of the policy, such as "Tee Time" or "Cart Rental".

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

            
Set the 'Type' attribute value. The type of the policy, such as "Tee Time" or "Cart Rental".

Parameters:
type
            public void setType(String type) {
                this. = type;
            }
        }
        
Defines the tee time cancellation policy of the golf facility and accepted guarantee payment types. 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="CancelPolicy" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="Deadline" minOccurs="0">
         <xs:complexType>
           <xs:attributeGroup ref="ns:DeadlineGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element name="AmountPercent" minOccurs="0">
         <!-- Reference to inner class AmountPercent -->
       </xs:element>
       <xs:element type="ns:ParagraphType" name="PenaltyDescription" minOccurs="0" maxOccurs="9"/>
       <xs:element name="GuaranteeAccepted" minOccurs="0" maxOccurs="unbounded">
         <!-- Reference to inner class GuaranteeAccepted -->
       </xs:element>
     </xs:sequence>
     <xs:attribute type="xs:boolean" use="optional" name="NonRefundable"/>
     <xs:attributeGroup ref="ns:DOW_PatternGroup"/>
     <xs:attributeGroup ref="ns:DateTimeSpanGroup"/>
     <xs:attribute type="xs:string" use="optional" name="TeeTimeCode"/>
   </xs:complexType>
 </xs:element>
 
        public static class CancelPolicy
        {
            private DeadlineGroup deadline;
            private AmountPercent amountPercent;
            private List<ParagraphpenaltyDescriptionList = new ArrayList<Paragraph>();
            private List<GuaranteeAcceptedguaranteeAcceptedList = new ArrayList<GuaranteeAccepted>();
            private Boolean nonRefundable;
            private DOWPatternGroup DOWPatternGroup;
            private DateTimeSpanGroup dateTimeSpanGroup;
            private String teeTimeCode;

            
Get the 'DeadlineGroup' attributeGroup value. The absolute deadline or amount of offset time before a deadline for a payment of cancel goes into effect.

Returns:
value
            public DeadlineGroup getDeadline() {
                return ;
            }

            
Set the 'DeadlineGroup' attributeGroup value. The absolute deadline or amount of offset time before a deadline for a payment of cancel goes into effect.

Parameters:
deadline
            public void setDeadline(DeadlineGroup deadline) {
                this. = deadline;
            }

            
Get the 'AmountPercent' element value.

Returns:
value
            public AmountPercent getAmountPercent() {
                return ;
            }

            
Set the 'AmountPercent' element value.

Parameters:
amountPercent
            public void setAmountPercent(AmountPercent amountPercent) {
                this. = amountPercent;
            }

            
Get the list of 'PenaltyDescription' element items. Text description of the Penalty in a given language.

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

            
Set the list of 'PenaltyDescription' element items. Text description of the Penalty in a given language.

Parameters:
list
            public void setPenaltyDescriptionList(List<Paragraphlist) {
                 = list;
            }

            
Get the number of 'PenaltyDescription' element items.

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

            
Add a 'PenaltyDescription' element item.

Parameters:
item
            public void addPenaltyDescription(Paragraph item) {
                .add(item);
            }

            
Get 'PenaltyDescription' element item by position.

Parameters:
index
Returns:
item
            public Paragraph getPenaltyDescription(int index) {
                return .get(index);
            }

            
Remove all 'PenaltyDescription' element items.
            public void clearPenaltyDescriptionList() {
                .clear();
            }

            
Get the list of 'GuaranteeAccepted' element items.

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

            
Set the list of 'GuaranteeAccepted' element items.

Parameters:
list
            public void setGuaranteeAcceptedList(List<GuaranteeAcceptedlist) {
                 = list;
            }

            
Get the number of 'GuaranteeAccepted' element items.

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

            
Add a 'GuaranteeAccepted' element item.

Parameters:
item
            public void addGuaranteeAccepted(GuaranteeAccepted item) {
                .add(item);
            }

            
Get 'GuaranteeAccepted' element item by position.

Parameters:
index
Returns:
item
            public GuaranteeAccepted getGuaranteeAccepted(int index) {
                return .get(index);
            }

            
Remove all 'GuaranteeAccepted' element items.
            public void clearGuaranteeAcceptedList() {
                .clear();
            }

            
Get the 'NonRefundable' attribute value. Indicates that any prepayment for the golf tee time is non refundable, therefore a 100% penalty on the prepayment is applied, irrespective of deadline.

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

            
Set the 'NonRefundable' attribute value. Indicates that any prepayment for the golf tee time is non refundable, therefore a 100% penalty on the prepayment is applied, irrespective of deadline.

Parameters:
nonRefundable
            public void setNonRefundable(Boolean nonRefundable) {
                this. = nonRefundable;
            }

            
Get the 'DOW_PatternGroup' attributeGroup value. If a day(s) of the week is set to true then the associated policy applies to that day of week.

Returns:
value
            public DOWPatternGroup getDOWPatternGroup() {
                return ;
            }

            
Set the 'DOW_PatternGroup' attributeGroup value. If a day(s) of the week is set to true then the associated policy applies to that day of week.

Parameters:
DOWPatternGroup
            public void setDOWPatternGroup(DOWPatternGroup DOWPatternGroup) {
                this. = DOWPatternGroup;
            }

            
Get the 'DateTimeSpanGroup' attributeGroup value. The date time span for which the policy applies.

Returns:
value
            public DateTimeSpanGroup getDateTimeSpanGroup() {
                return ;
            }

            
Set the 'DateTimeSpanGroup' attributeGroup value. The date time span for which the policy applies.

Parameters:
dateTimeSpanGroup
            public void setDateTimeSpanGroup(DateTimeSpanGroup dateTimeSpanGroup) {
                this. = dateTimeSpanGroup;
            }

            
Get the 'TeeTimeCode' attribute value. A system specific tee time to which this cancellation penalty applies.

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

            
Set the 'TeeTimeCode' attribute value. A system specific tee time to which this cancellation penalty applies.

Parameters:
teeTimeCode
            public void setTeeTimeCode(String teeTimeCode) {
                this. = teeTimeCode;
            }
            
Cancellation fee expressed as a fixed amount, or percentage tee time price. 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="AmountPercent" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:TaxesType" name="Taxes" minOccurs="0"/>
     </xs:sequence>
     <xs:attribute type="xs:boolean" use="optional" name="TaxInclusive"/>
     <xs:attribute type="xs:boolean" use="optional" name="FeesInclusive"/>
     <xs:attribute use="optional" name="BasisType">
       <xs:simpleType>
         <!-- Reference to inner class Basis -->
       </xs:simpleType>
     </xs:attribute>
     <xs:attribute type="xs:float" use="optional" name="Percent"/>
     <xs:attributeGroup ref="ns:CurrencyAmountGroup"/>
   </xs:complexType>
 </xs:element>
 
            public static class AmountPercent
            {
                private Taxes taxes;
                private Boolean taxInclusive;
                private Boolean feesInclusive;
                private Basis basis;
                private Float percent;
                private CurrencyAmountGroup currencyAmountGroup;

                
Get the 'Taxes' element value. A collection of taxes.

Returns:
value
                public Taxes getTaxes() {
                    return ;
                }

                
Set the 'Taxes' element value. A collection of taxes.

Parameters:
taxes
                public void setTaxes(Taxes taxes) {
                    this. = taxes;
                }

                
Get the 'TaxInclusive' attribute value. Indicates whether taxes are included when figuring the base amount.

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

                
Set the 'TaxInclusive' attribute value. Indicates whether taxes are included when figuring the base amount.

Parameters:
taxInclusive
                public void setTaxInclusive(Boolean taxInclusive) {
                    this. = taxInclusive;
                }

                
Get the 'FeesInclusive' attribute value. Indicates whether fees, such as those imposed by a travel agency or other booking agent, are included when figuring cancel penalties.

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

                
Set the 'FeesInclusive' attribute value. Indicates whether fees, such as those imposed by a travel agency or other booking agent, are included when figuring cancel penalties.

Parameters:
feesInclusive
                public void setFeesInclusive(Boolean feesInclusive) {
                    this. = feesInclusive;
                }

                
Get the 'BasisType' attribute value. Provides the basis for how the amount of the guarantee is calculated.

Returns:
value
                public Basis getBasis() {
                    return ;
                }

                
Set the 'BasisType' attribute value. Provides the basis for how the amount of the guarantee is calculated.

Parameters:
basis
                public void setBasis(Basis basis) {
                    this. = basis;
                }

                
Get the 'Percent' attribute value. The percentage used to calculate the amount.

Returns:
value
                public Float getPercent() {
                    return ;
                }

                
Set the 'Percent' attribute value. The percentage used to calculate the amount.

Parameters:
percent
                public void setPercent(Float percent) {
                    this. = percent;
                }

                
Get the 'CurrencyAmountGroup' attributeGroup value. Provides a monetary amount and the currency code to reflect the currency in which this amount is expressed.

Returns:
value
                public CurrencyAmountGroup getCurrencyAmountGroup() {
                    return ;
                }

                
Set the 'CurrencyAmountGroup' attributeGroup value. Provides a monetary amount and the currency code to reflect the currency in which this amount is expressed.

Parameters:
currencyAmountGroup
                public void setCurrencyAmountGroup(
                        CurrencyAmountGroup currencyAmountGroup) {
                    this. = currencyAmountGroup;
                }
                
Schema fragment(s) for this class:
 <xs:simpleType xmlns:xs="http://www.w3.org/2001/XMLSchema">
   <xs:restriction base="xs:string">
     <xs:enumeration value="FullStay"/>
     <xs:enumeration value="Nights"/>
     <xs:enumeration value="FirstLast"/>
   </xs:restriction>
 </xs:simpleType>
 
                public static enum Basis {
                    
Uses the full stay as the basis.
                    FULL_STAY("FullStay"), 
Uses the nights as the basis.
                    NIGHTS("Nights"), 
Uses the first and last night as the basis.
                    FIRST_LAST("FirstLast");
                    private final String value;
                    private Basis(String value) {
                        this. = value;
                    }
                    public String xmlValue() {
                        return ;
                    }
                    public static Basis convert(String value) {
                        for (Basis inst : values()) {
                            if (inst.xmlValue().equals(value)) {
                                return inst;
                            }
                        }
                        return null;
                    }
                }
            }
            
Guarantee payment forms accepted by the golf facility. 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="GuaranteeAccepted" minOccurs="0" maxOccurs="unbounded">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:PaymentFormType">
         <xs:attribute type="xs:string" use="optional" name="Description"/>
         <xs:attribute type="xs:boolean" use="optional" name="NoCardHolderInfoReqInd"/>
         <xs:attribute type="xs:boolean" use="optional" name="NameReqInd"/>
         <xs:attribute type="xs:boolean" use="optional" name="AddressReqInd"/>
         <xs:attribute type="xs:boolean" use="optional" name="PhoneReqInd"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
            public static class GuaranteeAccepted extends PaymentForm
            {
                private String description;
                private Boolean noCardHolderInfoReqInd;
                private Boolean nameReqInd;
                private Boolean addressReqInd;
                private Boolean phoneReqInd;

                
Get the 'Description' attribute value. A description of the guarantee.

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

                
Set the 'Description' attribute value. A description of the guarantee.

Parameters:
description
                public void setDescription(String description) {
                    this. = description;
                }

                
Get the 'NoCardHolderInfoReqInd' attribute value. If true, no credit card holder information is required. If false, it is not required.

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

                
Set the 'NoCardHolderInfoReqInd' attribute value. If true, no credit card holder information is required. If false, it is not required.

Parameters:
noCardHolderInfoReqInd
                public void setNoCardHolderInfoReqInd(
                        Boolean noCardHolderInfoReqInd) {
                    this. = noCardHolderInfoReqInd;
                }

                
Get the 'NameReqInd' attribute value. If true, the credit card holder name is required. If false, it is not required.

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

                
Set the 'NameReqInd' attribute value. If true, the credit card holder name is required. If false, it is not required.

Parameters:
nameReqInd
                public void setNameReqInd(Boolean nameReqInd) {
                    this. = nameReqInd;
                }

                
Get the 'AddressReqInd' attribute value. If true, credit card holder address is required. If false, it is not required.

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

                
Set the 'AddressReqInd' attribute value. If true, credit card holder address is required. If false, it is not required.

Parameters:
addressReqInd
                public void setAddressReqInd(Boolean addressReqInd) {
                    this. = addressReqInd;
                }

                
Get the 'PhoneReqInd' attribute value. If true, credit card holder phone number is required. If false, it is not required.

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

                
Set the 'PhoneReqInd' attribute value. If true, credit card holder phone number is required. If false, it is not required.

Parameters:
phoneReqInd
                public void setPhoneReqInd(Boolean phoneReqInd) {
                    this. = phoneReqInd;
                }
            }
        }
        
A collection of fees that may apply to a tee time. 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="FeePolicies" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:FeeType" name="FeePolicy" maxOccurs="unbounded"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 
        public static class FeePolicies
        {
            private List<FeefeePolicyList = new ArrayList<Fee>();

            
Get the list of 'FeePolicy' element items. A fee that may apply to a tee time reservation.

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

            
Set the list of 'FeePolicy' element items. A fee that may apply to a tee time reservation.

Parameters:
list
            public void setFeePolicyList(List<Feelist) {
                 = list;
            }

            
Get the number of 'FeePolicy' element items.

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

            
Add a 'FeePolicy' element item.

Parameters:
item
            public void addFeePolicy(Fee item) {
                .add(item);
            }

            
Get 'FeePolicy' element item by position.

Parameters:
index
Returns:
item
            public Fee getFeePolicy(int index) {
                return .get(index);
            }

            
Remove all 'FeePolicy' element items.
            public void clearFeePolicyList() {
                .clear();
            }
        }
    }