org.ota.shared
Class FormattedText

java.lang.Object
  extended by org.ota.shared.FormattedText
Direct Known Subclasses:
LocDetailsNotifRQ.LocationDetail.ShuttleInfo.ShuttleDesc, VehicleAdditionalDriverRequirements.AddlDriverInfos.AddlDriverInfo, VehicleAgeRequirements.Age.AgeInfos.AgeInfo, VehicleLocationAdditionalDetails.Shuttle.ShuttleInfos.ShuttleInfo, VehicleLocationInformation, VehicleLocationRequirements.AdditionalDriver.AddlDriverInfos.AddlDriverInfo, VehicleLocationRequirements.Age.AgeInfos.AgeInfo, VehicleLocationRequirements.RequirementInfos.RequirementInfo, VehicleLocationVehicles.VehicleInfos.VehicleInfo

public class FormattedText
extends java.lang.Object

Collection of formatted text sub sections. Schema fragment(s) for this class:

 <xs:complexType xmlns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="FormattedTextType">
   <xs:sequence>
     <xs:element type="FormattedTextSubSectionType" name="SubSection" maxOccurs="99">
       <!-- Reference to inner class SubSection -->
     </xs:element>
   </xs:sequence>
   <xs:attribute type="xs:string" use="optional" name="Title"/>
   <xs:attribute type="xs:string" use="optional" name="Language"/>
 </xs:complexType>
 


Nested Class Summary
static class FormattedText.SubSection
          Subsection formatted text information.
 
Constructor Summary
FormattedText()
           
 
Method Summary
 void addSubSection(FormattedText.SubSection item)
          Add a 'SubSection' element item.
 void clearSubSections()
          Remove all 'SubSection' element items.
 java.lang.String getLanguage()
          Get the 'Language' attribute value.
 FormattedText.SubSection getSubSection(int index)
          Get 'SubSection' element item by position.
 java.util.List<FormattedText.SubSection> getSubSections()
          Get the list of 'SubSection' element items.
 java.lang.String getTitle()
          Get the 'Title' attribute value.
 void setLanguage(java.lang.String language)
          Set the 'Language' attribute value.
 void setSubSections(java.util.List<FormattedText.SubSection> list)
          Set the list of 'SubSection' element items.
 void setTitle(java.lang.String title)
          Set the 'Title' attribute value.
 int sizeSubSections()
          Get the number of 'SubSection' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormattedText

public FormattedText()
Method Detail

getSubSections

public java.util.List<FormattedText.SubSection> getSubSections()
Get the list of 'SubSection' element items.

Returns:
list

setSubSections

public void setSubSections(java.util.List<FormattedText.SubSection> list)
Set the list of 'SubSection' element items.

Parameters:
list -

sizeSubSections

public int sizeSubSections()
Get the number of 'SubSection' element items.

Returns:
count

addSubSection

public void addSubSection(FormattedText.SubSection item)
Add a 'SubSection' element item.

Parameters:
item -

getSubSection

public FormattedText.SubSection getSubSection(int index)
Get 'SubSection' element item by position.

Parameters:
index -
Returns:
item

clearSubSections

public void clearSubSections()
Remove all 'SubSection' element items.


getTitle

public java.lang.String getTitle()
Get the 'Title' attribute value. This attribute may be used to provide a title for the formatted free text, for example, Driving Directions. Each of the sub sections that are defined to be a part of the formatted text would provide detailed information about the subject identified by the title.

Returns:
value

setTitle

public void setTitle(java.lang.String title)
Set the 'Title' attribute value. This attribute may be used to provide a title for the formatted free text, for example, Driving Directions. Each of the sub sections that are defined to be a part of the formatted text would provide detailed information about the subject identified by the title.

Parameters:
title -

getLanguage

public java.lang.String getLanguage()
Get the 'Language' attribute value. The language in which the content is provided.

Returns:
value

setLanguage

public void setLanguage(java.lang.String language)
Set the 'Language' attribute value. The language in which the content is provided.

Parameters:
language -