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 request sends a request for updated golf course facility information which is used to keep trading partner database(s) and cache(s) current with golf supplier facility information. Golf facility request information includes the ID and (optional) name of the golf course facility, which may be repeated to request information about multiple courses. 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_GolfFacilityInfoRQ">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:POS_Type" name="POS" minOccurs="0"/>
       <xs:element name="GolfFacility" maxOccurs="unbounded">
         <!-- Reference to inner class GolfFacility -->
       </xs:element>
     </xs:sequence>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 
 
 public class FacilityInfoRQ
 {
     private POS POS;
     private List<GolfFacilitygolfFacilityList = new ArrayList<GolfFacility>();
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 list of 'GolfFacility' element items.

Returns:
list
 
     public List<GolfFacilitygetGolfFacilityList() {
         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 '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;
    }
    
Golf facility ID(s) to request updated information for. 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" maxOccurs="unbounded">
   <xs:complexType>
     <xs:attribute type="xs:string" use="required" name="ID"/>
     <xs:attribute type="xs:string" use="optional" name="Name"/>
   </xs:complexType>
 </xs:element>
 
    public static class GolfFacility
    {
        private String ID;
        private String name;

        
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;
        }
    }
New to GrepCode? Check out our FAQ X