Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.golf;
  
  import java.util.List;
Tee time information associated with an availability request. 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="TeeTimeAvailType">
   <xs:sequence>
     <xs:element type="ns:GolferType" name="Golfer" minOccurs="0" maxOccurs="99"/>
     <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: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="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 TeeTimeAvail
 {
     private List<GolfergolferList = new ArrayList<Golfer>();
     private List<DiscountsdiscountList = new ArrayList<Discounts>();
     private List<AmenityamenityList = new ArrayList<Amenity>();
     private String roundID;
     private String golferQty;
     private String packageID;
     private String numberOfHoles;
     private String cartQty;
     private String replayRoundQty;
     private Boolean disabledInd;

    
Get the list of 'Golfer' element items. A collection of individuals participating in the tee time round.

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

    
Set the list of 'Golfer' element items. A collection of individuals participating in the tee time round.

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 '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 '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 '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 requested.

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

    
Set the 'CartQty' attribute value. The number of carts requested.

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

    
Get the 'ReplayRoundQty' attribute value. The number of tee times requested.(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 requested.(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, tee time rounds that accommodate physically challenged individuals are requested.

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

    
Set the 'DisabledInd' attribute value. If true, tee time rounds that accommodate physically challenged individuals are requested.

Parameters:
disabledInd
    public void setDisabledInd(Boolean disabledInd) {
        this. = disabledInd;
    }
    
Promotions and other rate qualifying discounts requested for 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 requested for 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;
        }
    }
New to GrepCode? Check out our FAQ X