org.ota.shared
Class TravelerCountGroup

java.lang.Object
  extended by org.ota.shared.TravelerCountGroup

public class TravelerCountGroup
extends java.lang.Object

Defines information on the number of travelers of a specific type (e.g. a driver type can be either one of a defined set, Adult, YoungDriver, YoungerDriver, or it may be a code that is acceptable to both Trading Partners). Schema fragment(s) for this class:

 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="TravelerCountGroup">
   <xs:attribute type="xs:int" use="optional" name="Age"/>
   <xs:attribute type="xs:string" use="optional" name="Code"/>
   <xs:attribute type="xs:string" use="optional" name="CodeContext"/>
   <xs:attribute type="xs:string" use="optional" name="URI"/>
   <xs:attributeGroup ref="ns:QuantityGroup"/>
 </xs:attributeGroup>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="QuantityGroup">
   <xs:attribute type="xs:int" use="optional" name="Quantity"/>
 </xs:attributeGroup>
 


Constructor Summary
TravelerCountGroup()
           
 
Method Summary
 java.lang.Integer getAge()
          Get the 'Age' attribute value.
 java.lang.String getCode()
          Get the 'Code' attribute value.
 java.lang.String getCodeContext()
          Get the 'CodeContext' attribute value.
 java.lang.Integer getQuantity()
          Get the 'Quantity' attribute value.
 java.lang.String getURI()
          Get the 'URI' attribute value.
 void setAge(java.lang.Integer age)
          Set the 'Age' attribute value.
 void setCode(java.lang.String code)
          Set the 'Code' attribute value.
 void setCodeContext(java.lang.String codeContext)
          Set the 'CodeContext' attribute value.
 void setQuantity(java.lang.Integer quantity)
          Set the 'Quantity' attribute value.
 void setURI(java.lang.String URI)
          Set the 'URI' attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TravelerCountGroup

public TravelerCountGroup()
Method Detail

getAge

public java.lang.Integer getAge()
Get the 'Age' attribute value. This is used to specify age in years.

Returns:
value

setAge

public void setAge(java.lang.Integer age)
Set the 'Age' attribute value. This is used to specify age in years.

Parameters:
age -

getCode

public java.lang.String getCode()
Get the 'Code' attribute value. Refer to OpenTravel Code List Age Qualifying Code (AQC) or use StringLength1to8 with CodeContext to use a non-OpenTravel Code.

Returns:
value

setCode

public void setCode(java.lang.String code)
Set the 'Code' attribute value. Refer to OpenTravel Code List Age Qualifying Code (AQC) or use StringLength1to8 with CodeContext to use a non-OpenTravel Code.

Parameters:
code -

getCodeContext

public java.lang.String getCodeContext()
Get the 'CodeContext' attribute value. Identifies the source authority for the code.

Returns:
value

setCodeContext

public void setCodeContext(java.lang.String codeContext)
Set the 'CodeContext' attribute value. Identifies the source authority for the code.

Parameters:
codeContext -

getURI

public java.lang.String getURI()
Get the 'URI' attribute value. Identifies the location of the code table

Returns:
value

setURI

public void setURI(java.lang.String URI)
Set the 'URI' attribute value. Identifies the location of the code table

Parameters:
URI -

getQuantity

public java.lang.Integer getQuantity()
Get the 'Quantity' attribute value. Used to define the quantity for an associated element or attribute.

Returns:
value

setQuantity

public void setQuantity(java.lang.Integer quantity)
Set the 'Quantity' attribute value. Used to define the quantity for an associated element or attribute.

Parameters:
quantity -