org.ota.hotel
Class HotelDescriptiveContent.Policies.Policy.PolicyInfoCodes.PolicyInfoCode

java.lang.Object
  extended by org.ota.hotel.HotelDescriptiveContent.Policies.Policy.PolicyInfoCodes.PolicyInfoCode
Enclosing class:
HotelDescriptiveContent.Policies.Policy.PolicyInfoCodes

public static class HotelDescriptiveContent.Policies.Policy.PolicyInfoCodes.PolicyInfoCode
extends java.lang.Object

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="PolicyInfoCode" maxOccurs="unbounded">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:ParagraphType" name="Description" minOccurs="0" maxOccurs="5"/>
     </xs:sequence>
     <xs:attributeGroup ref="ns:CodeInfoGroup"/>
     <xs:attributeGroup ref="ns:CodeListGroup"/>
     <xs:attribute use="optional" name="Name">
       <xs:simpleType>
         <!-- Reference to inner class Name -->
       </xs:simpleType>
     </xs:attribute>
     <xs:attribute type="xs:string" use="optional" name="ExistsCode"/>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class HotelDescriptiveContent.Policies.Policy.PolicyInfoCodes.PolicyInfoCode.Name
          Schema fragment(s) for this class:
 
Constructor Summary
HotelDescriptiveContent.Policies.Policy.PolicyInfoCodes.PolicyInfoCode()
           
 
Method Summary
 void addDescription(Paragraph item)
          Add a 'Description' element item.
 void clearDescriptions()
          Remove all 'Description' element items.
 CodeInfoGroup getCodeInfoGroup()
          Get the 'CodeInfoGroup' attributeGroup value.
 CodeListGroup getCodeListGroup()
          Get the 'CodeListGroup' attributeGroup value.
 Paragraph getDescription(int index)
          Get 'Description' element item by position.
 java.util.List<Paragraph> getDescriptions()
          Get the list of 'Description' element items.
 java.lang.String getExistsCode()
          Get the 'ExistsCode' attribute value.
 HotelDescriptiveContent.Policies.Policy.PolicyInfoCodes.PolicyInfoCode.Name getName()
          Get the 'Name' attribute value.
 void setCodeInfoGroup(CodeInfoGroup codeInfoGroup)
          Set the 'CodeInfoGroup' attributeGroup value.
 void setCodeListGroup(CodeListGroup codeListGroup)
          Set the 'CodeListGroup' attributeGroup value.
 void setDescriptions(java.util.List<Paragraph> list)
          Set the list of 'Description' element items.
 void setExistsCode(java.lang.String existsCode)
          Set the 'ExistsCode' attribute value.
 void setName(HotelDescriptiveContent.Policies.Policy.PolicyInfoCodes.PolicyInfoCode.Name name)
          Set the 'Name' attribute value.
 int sizeDescriptions()
          Get the number of 'Description' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HotelDescriptiveContent.Policies.Policy.PolicyInfoCodes.PolicyInfoCode

public HotelDescriptiveContent.Policies.Policy.PolicyInfoCodes.PolicyInfoCode()
Method Detail

getDescriptions

public java.util.List<Paragraph> getDescriptions()
Get the list of 'Description' element items.

Returns:
list

setDescriptions

public void setDescriptions(java.util.List<Paragraph> list)
Set the list of 'Description' element items.

Parameters:
list -

sizeDescriptions

public int sizeDescriptions()
Get the number of 'Description' element items.

Returns:
count

addDescription

public void addDescription(Paragraph item)
Add a 'Description' element item.

Parameters:
item -

getDescription

public Paragraph getDescription(int index)
Get 'Description' element item by position.

Parameters:
index -
Returns:
item

clearDescriptions

public void clearDescriptions()
Remove all 'Description' element items.


getCodeInfoGroup

public CodeInfoGroup getCodeInfoGroup()
Get the 'CodeInfoGroup' attributeGroup value. May be used to give further detail on the code or to remove an obsolete item.

Returns:
value

setCodeInfoGroup

public void setCodeInfoGroup(CodeInfoGroup codeInfoGroup)
Set the 'CodeInfoGroup' attributeGroup value. May be used to give further detail on the code or to remove an obsolete item.

Parameters:
codeInfoGroup -

getCodeListGroup

public CodeListGroup getCodeListGroup()
Get the 'CodeListGroup' attributeGroup value.

Returns:
value

setCodeListGroup

public void setCodeListGroup(CodeListGroup codeListGroup)
Set the 'CodeListGroup' attributeGroup value.

Parameters:
codeListGroup -

getName

public HotelDescriptiveContent.Policies.Policy.PolicyInfoCodes.PolicyInfoCode.Name getName()
Get the 'Name' attribute value.

Returns:
value

setName

public void setName(HotelDescriptiveContent.Policies.Policy.PolicyInfoCodes.PolicyInfoCode.Name name)
Set the 'Name' attribute value.

Parameters:
name -

getExistsCode

public java.lang.String getExistsCode()
Get the 'ExistsCode' attribute value. This attribute is used to explicitly define whether the policy applies. Refer to OpenTravel Code list Option Type Code (OTC). This is used in conjunction with Name.

Returns:
value

setExistsCode

public void setExistsCode(java.lang.String existsCode)
Set the 'ExistsCode' attribute value. This attribute is used to explicitly define whether the policy applies. Refer to OpenTravel Code list Option Type Code (OTC). This is used in conjunction with Name.

Parameters:
existsCode -