org.ota.shared
Class MultimediaDescriptions.MultimediaDescription.Choice.TextItems.TextItem

java.lang.Object
  extended by org.ota.shared.MultimediaDescriptions.MultimediaDescription.Choice.TextItems.TextItem
Enclosing class:
MultimediaDescriptions.MultimediaDescription.Choice.TextItems

public static class MultimediaDescriptions.MultimediaDescription.Choice.TextItems.TextItem
extends java.lang.Object

Text description of a given category. 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="TextItem" maxOccurs="unbounded">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:TextDescriptionType">
         <xs:attributeGroup ref="ns:DateTimeStampGroup"/>
         <xs:attributeGroup ref="ns:RemovalGroup"/>
         <xs:attribute type="xs:string" use="optional" name="Version"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="TextDescriptionType">
   <xs:choice>
     <xs:element type="xs:string" name="URL" minOccurs="0"/>
     <xs:element name="Description" minOccurs="0" maxOccurs="unbounded">
       <!-- Reference to inner class Description -->
     </xs:element>
   </xs:choice>
   <xs:attribute type="xs:string" use="optional" name="Category"/>
   <xs:attributeGroup ref="ns:MultimediaDescriptionGroup"/>
   <xs:attribute type="xs:string" use="optional" name="Language"/>
 </xs:complexType>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="RemovalGroup">
   <xs:attribute type="xs:boolean" use="optional" name="Removal"/>
 </xs:attributeGroup>
 


Nested Class Summary
static class MultimediaDescriptions.MultimediaDescription.Choice.TextItems.TextItem.Description
          The text in a specific language.
 
Constructor Summary
MultimediaDescriptions.MultimediaDescription.Choice.TextItems.TextItem()
           
 
Method Summary
 void addDescription(MultimediaDescriptions.MultimediaDescription.Choice.TextItems.TextItem.Description item)
          Add a 'Description' element item.
 void clearChoiceSelect()
          Clear the choice selection.
 void clearDescriptions()
          Remove all 'Description' element items.
 java.lang.String getCategory()
          Get the 'Category' attribute value.
 DateTimeStampGroup getDateTimeStampGroup()
          Get the 'DateTimeStampGroup' attributeGroup value.
 MultimediaDescriptions.MultimediaDescription.Choice.TextItems.TextItem.Description getDescription(int index)
          Get 'Description' element item by position.
 java.util.List<MultimediaDescriptions.MultimediaDescription.Choice.TextItems.TextItem.Description> getDescriptions()
          Get the list of 'Description' element items.
 java.lang.String getLanguage()
          Get the 'Language' attribute value.
 MultimediaDescriptionGroup getMultimediaDescriptionGroup()
          Get the 'MultimediaDescriptionGroup' attributeGroup value.
 java.lang.Boolean getRemoval()
          Get the 'Removal' attribute value.
 java.lang.String getURL()
          Get the 'URL' element value.
 java.lang.String getVersion()
          Get the 'Version' attribute value.
 boolean ifDescription()
          Check if Descriptions is current selection for choice.
 boolean ifURL()
          Check if URL is current selection for choice.
 void setCategory(java.lang.String category)
          Set the 'Category' attribute value.
 void setDateTimeStampGroup(DateTimeStampGroup dateTimeStampGroup)
          Set the 'DateTimeStampGroup' attributeGroup value.
 void setDescriptions(java.util.List<MultimediaDescriptions.MultimediaDescription.Choice.TextItems.TextItem.Description> list)
          Set the list of 'Description' element items.
 void setLanguage(java.lang.String language)
          Set the 'Language' attribute value.
 void setMultimediaDescriptionGroup(MultimediaDescriptionGroup multimediaDescriptionGroup)
          Set the 'MultimediaDescriptionGroup' attributeGroup value.
 void setRemoval(java.lang.Boolean removal)
          Set the 'Removal' attribute value.
 void setURL(java.lang.String URL)
          Set the 'URL' element value.
 void setVersion(java.lang.String version)
          Set the 'Version' 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

MultimediaDescriptions.MultimediaDescription.Choice.TextItems.TextItem

public MultimediaDescriptions.MultimediaDescription.Choice.TextItems.TextItem()
Method Detail

clearChoiceSelect

public void clearChoiceSelect()
Clear the choice selection.


ifURL

public boolean ifURL()
Check if URL is current selection for choice.

Returns:
true if selection, false if not

getURL

public java.lang.String getURL()
Get the 'URL' element value. The URL for a specific text item..

Returns:
value

setURL

public void setURL(java.lang.String URL)
Set the 'URL' element value. The URL for a specific text item..

Parameters:
URL -

ifDescription

public boolean ifDescription()
Check if Descriptions is current selection for choice.

Returns:
true if selection, false if not

getDescriptions

public java.util.List<MultimediaDescriptions.MultimediaDescription.Choice.TextItems.TextItem.Description> getDescriptions()
Get the list of 'Description' element items.

Returns:
list

setDescriptions

public void setDescriptions(java.util.List<MultimediaDescriptions.MultimediaDescription.Choice.TextItems.TextItem.Description> 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(MultimediaDescriptions.MultimediaDescription.Choice.TextItems.TextItem.Description item)
Add a 'Description' element item.

Parameters:
item -

getDescription

public MultimediaDescriptions.MultimediaDescription.Choice.TextItems.TextItem.Description getDescription(int index)
Get 'Description' element item by position.

Parameters:
index -
Returns:
item

clearDescriptions

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


getCategory

public java.lang.String getCategory()
Get the 'Category' attribute value. Specifies the text category. Refer to OpenTravel Code list Picture Category Code (PIC).

Returns:
value

setCategory

public void setCategory(java.lang.String category)
Set the 'Category' attribute value. Specifies the text category. Refer to OpenTravel Code list Picture Category Code (PIC).

Parameters:
category -

getMultimediaDescriptionGroup

public MultimediaDescriptionGroup getMultimediaDescriptionGroup()
Get the 'MultimediaDescriptionGroup' attributeGroup value. Generic information about the text multimedia item.

Returns:
value

setMultimediaDescriptionGroup

public void setMultimediaDescriptionGroup(MultimediaDescriptionGroup multimediaDescriptionGroup)
Set the 'MultimediaDescriptionGroup' attributeGroup value. Generic information about the text multimedia item.

Parameters:
multimediaDescriptionGroup -

getLanguage

public java.lang.String getLanguage()
Get the 'Language' attribute value. The language of the text item.

Returns:
value

setLanguage

public void setLanguage(java.lang.String language)
Set the 'Language' attribute value. The language of the text item.

Parameters:
language -

getDateTimeStampGroup

public DateTimeStampGroup getDateTimeStampGroup()
Get the 'DateTimeStampGroup' attributeGroup value. Creation and modification information for this text item.

Returns:
value

setDateTimeStampGroup

public void setDateTimeStampGroup(DateTimeStampGroup dateTimeStampGroup)
Set the 'DateTimeStampGroup' attributeGroup value. Creation and modification information for this text item.

Parameters:
dateTimeStampGroup -

getRemoval

public java.lang.Boolean getRemoval()
Get the 'Removal' attribute value. If true, this item is obsolete and should be removed from the receiving system. false

Returns:
value

setRemoval

public void setRemoval(java.lang.Boolean removal)
Set the 'Removal' attribute value. If true, this item is obsolete and should be removed from the receiving system. false

Parameters:
removal -

getVersion

public java.lang.String getVersion()
Get the 'Version' attribute value. The version of the text item.

Returns:
value

setVersion

public void setVersion(java.lang.String version)
Set the 'Version' attribute value. The version of the text item.

Parameters:
version -