org.ota.shared
Class Paragraph

java.lang.Object
  extended by org.ota.shared.Paragraph
Direct Known Subclasses:
BookingHistoryRS.HistoryInfos.HistoryInfo.Items.Item, Comment.CommentInner, HotelDescriptiveContent.AffiliationInfo.LoyalPrograms.LoyalProgram.ProgramDescription, HotelDescriptiveContent.AffiliationInfo.LoyalPrograms.LoyalProgram.ProgramRestriction, InvBlock.BlockDescriptions.BlockDescription, LocDetailsNotifRQ.LocationDetail.Keywords.Keyword, LocDetailsNotifRQ.LocationDetail.Policies.Policy, Profile.Comments.Comment, RFPTransientRQ.Comments.Comment, RFPTransientRQ.RequestedInfos.RequestedInfo.SpecificRequests.SpecificRequest, SpecialRequest.SpecialRequestInner

public class Paragraph
extends java.lang.Object

An indication of a new paragraph for a sub-section of a formatted text message. Schema fragment(s) for this class:

 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ParagraphType">
   <xs:choice minOccurs="0" maxOccurs="unbounded">
     <!-- Reference to inner class Choice -->
   </xs:choice>
   <xs:attribute type="xs:string" use="optional" name="Name"/>
   <xs:attribute type="xs:int" use="optional" name="ParagraphNumber"/>
   <xs:attributeGroup ref="ns:DateTimeStampGroup"/>
   <xs:attributeGroup ref="ns:LanguageGroup"/>
 </xs:complexType>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="LanguageGroup">
   <xs:attribute type="xs:string" use="optional" name="Language"/>
 </xs:attributeGroup>
 


Nested Class Summary
static class Paragraph.Choice
          Schema fragment(s) for this class:
 
Constructor Summary
Paragraph()
           
 
Method Summary
 void addChoice(Paragraph.Choice item)
          Add a choice item.
 void clearChoices()
          Remove all choice items.
 Paragraph.Choice getChoice(int index)
          Get choice item by position.
 java.util.List<Paragraph.Choice> getChoices()
          Get the list of choice items.
 DateTimeStampGroup getDateTimeStampGroup()
          Get the 'DateTimeStampGroup' attributeGroup value.
 java.lang.String getLanguage()
          Get the 'Language' attribute value.
 java.lang.String getName()
          Get the 'Name' attribute value.
 java.lang.Integer getParagraphNumber()
          Get the 'ParagraphNumber' attribute value.
 void setChoices(java.util.List<Paragraph.Choice> list)
          Set the list of choice items.
 void setDateTimeStampGroup(DateTimeStampGroup dateTimeStampGroup)
          Set the 'DateTimeStampGroup' attributeGroup value.
 void setLanguage(java.lang.String language)
          Set the 'Language' attribute value.
 void setName(java.lang.String name)
          Set the 'Name' attribute value.
 void setParagraphNumber(java.lang.Integer paragraphNumber)
          Set the 'ParagraphNumber' attribute value.
 int sizeChoices()
          Get the number of choice items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Paragraph

public Paragraph()
Method Detail

getChoices

public java.util.List<Paragraph.Choice> getChoices()
Get the list of choice items.

Returns:
list

setChoices

public void setChoices(java.util.List<Paragraph.Choice> list)
Set the list of choice items.

Parameters:
list -

sizeChoices

public int sizeChoices()
Get the number of choice items.

Returns:
count

addChoice

public void addChoice(Paragraph.Choice item)
Add a choice item.

Parameters:
item -

getChoice

public Paragraph.Choice getChoice(int index)
Get choice item by position.

Parameters:
index -
Returns:
item

clearChoices

public void clearChoices()
Remove all choice items.


getName

public java.lang.String getName()
Get the 'Name' attribute value. In many cases the description repeats, this will allow you to define the information that is being sent, typically used when multiple occurrences of ParagraphType are being sent.

Returns:
value

setName

public void setName(java.lang.String name)
Set the 'Name' attribute value. In many cases the description repeats, this will allow you to define the information that is being sent, typically used when multiple occurrences of ParagraphType are being sent.

Parameters:
name -

getParagraphNumber

public java.lang.Integer getParagraphNumber()
Get the 'ParagraphNumber' attribute value. The sequence number for the paragraph.

Returns:
value

setParagraphNumber

public void setParagraphNumber(java.lang.Integer paragraphNumber)
Set the 'ParagraphNumber' attribute value. The sequence number for the paragraph.

Parameters:
paragraphNumber -

getDateTimeStampGroup

public DateTimeStampGroup getDateTimeStampGroup()
Get the 'DateTimeStampGroup' attributeGroup value. Creation date time, Creator ID, last modification date time and last modifier ID for the paragraph.

Returns:
value

setDateTimeStampGroup

public void setDateTimeStampGroup(DateTimeStampGroup dateTimeStampGroup)
Set the 'DateTimeStampGroup' attributeGroup value. Creation date time, Creator ID, last modification date time and last modifier ID for the paragraph.

Parameters:
dateTimeStampGroup -

getLanguage

public java.lang.String getLanguage()
Get the 'Language' attribute value. Language identification.

Returns:
value

setLanguage

public void setLanguage(java.lang.String language)
Set the 'Language' attribute value. Language identification.

Parameters:
language -