org.ota.profile
Class Profile.Comments.Comment

java.lang.Object
  extended by org.ota.shared.Paragraph
      extended by org.ota.profile.Profile.Comments.Comment
Enclosing class:
Profile.Comments

public static class Profile.Comments.Comment
extends Paragraph

Comment details. 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="Comment" maxOccurs="unbounded">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:ParagraphType">
         <xs:sequence>
           <xs:element name="AuthorizedViewer" minOccurs="0" maxOccurs="3">
             <!-- Reference to inner class AuthorizedViewer -->
           </xs:element>
         </xs:sequence>
         <xs:attribute type="xs:string" use="optional" name="CommentOriginatorCode"/>
         <xs:attribute type="xs:boolean" use="optional" name="GuestViewable"/>
         <xs:attribute type="xs:string" use="optional" name="Category"/>
         <xs:attribute type="xs:string" use="optional" name="AirlineVendorPrefRPH"/>
         <xs:attribute type="ns:TransferActionType" use="optional" name="TransferAction"/>
         <xs:attribute type="xs:date" use="optional" name="ActionDate"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class Profile.Comments.Comment.AuthorizedViewer
          Specifies those authorized to view a comment.
 
Nested classes/interfaces inherited from class org.ota.shared.Paragraph
Paragraph.Choice
 
Constructor Summary
Profile.Comments.Comment()
           
 
Method Summary
 void addAuthorizedViewer(Profile.Comments.Comment.AuthorizedViewer item)
          Add a 'AuthorizedViewer' element item.
 void clearAuthorizedViewers()
          Remove all 'AuthorizedViewer' element items.
 java.sql.Date getActionDate()
          Get the 'ActionDate' attribute value.
 java.lang.String getAirlineVendorPrefRPH()
          Get the 'AirlineVendorPrefRPH' attribute value.
 Profile.Comments.Comment.AuthorizedViewer getAuthorizedViewer(int index)
          Get 'AuthorizedViewer' element item by position.
 java.util.List<Profile.Comments.Comment.AuthorizedViewer> getAuthorizedViewers()
          Get the list of 'AuthorizedViewer' element items.
 java.lang.String getCategory()
          Get the 'Category' attribute value.
 java.lang.String getCommentOriginatorCode()
          Get the 'CommentOriginatorCode' attribute value.
 java.lang.Boolean getGuestViewable()
          Get the 'GuestViewable' attribute value.
 TransferAction getTransferAction()
          Get the 'TransferAction' attribute value.
 void setActionDate(java.sql.Date actionDate)
          Set the 'ActionDate' attribute value.
 void setAirlineVendorPrefRPH(java.lang.String airlineVendorPrefRPH)
          Set the 'AirlineVendorPrefRPH' attribute value.
 void setAuthorizedViewers(java.util.List<Profile.Comments.Comment.AuthorizedViewer> list)
          Set the list of 'AuthorizedViewer' element items.
 void setCategory(java.lang.String category)
          Set the 'Category' attribute value.
 void setCommentOriginatorCode(java.lang.String commentOriginatorCode)
          Set the 'CommentOriginatorCode' attribute value.
 void setGuestViewable(java.lang.Boolean guestViewable)
          Set the 'GuestViewable' attribute value.
 void setTransferAction(TransferAction transferAction)
          Set the 'TransferAction' attribute value.
 int sizeAuthorizedViewers()
          Get the number of 'AuthorizedViewer' element items.
 
Methods inherited from class org.ota.shared.Paragraph
addChoice, clearChoices, getChoice, getChoices, getDateTimeStampGroup, getLanguage, getName, getParagraphNumber, setChoices, setDateTimeStampGroup, setLanguage, setName, setParagraphNumber, sizeChoices
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Profile.Comments.Comment

public Profile.Comments.Comment()
Method Detail

getAuthorizedViewers

public java.util.List<Profile.Comments.Comment.AuthorizedViewer> getAuthorizedViewers()
Get the list of 'AuthorizedViewer' element items.

Returns:
list

setAuthorizedViewers

public void setAuthorizedViewers(java.util.List<Profile.Comments.Comment.AuthorizedViewer> list)
Set the list of 'AuthorizedViewer' element items.

Parameters:
list -

sizeAuthorizedViewers

public int sizeAuthorizedViewers()
Get the number of 'AuthorizedViewer' element items.

Returns:
count

addAuthorizedViewer

public void addAuthorizedViewer(Profile.Comments.Comment.AuthorizedViewer item)
Add a 'AuthorizedViewer' element item.

Parameters:
item -

getAuthorizedViewer

public Profile.Comments.Comment.AuthorizedViewer getAuthorizedViewer(int index)
Get 'AuthorizedViewer' element item by position.

Parameters:
index -
Returns:
item

clearAuthorizedViewers

public void clearAuthorizedViewers()
Remove all 'AuthorizedViewer' element items.


getCommentOriginatorCode

public java.lang.String getCommentOriginatorCode()
Get the 'CommentOriginatorCode' attribute value. Unique identifier for the system which created the comment.

Returns:
value

setCommentOriginatorCode

public void setCommentOriginatorCode(java.lang.String commentOriginatorCode)
Set the 'CommentOriginatorCode' attribute value. Unique identifier for the system which created the comment.

Parameters:
commentOriginatorCode -

getGuestViewable

public java.lang.Boolean getGuestViewable()
Get the 'GuestViewable' attribute value. When true, the comment may be shown to the consumer. When false, the comment may not be shown to the consumer.

Returns:
value

setGuestViewable

public void setGuestViewable(java.lang.Boolean guestViewable)
Set the 'GuestViewable' attribute value. When true, the comment may be shown to the consumer. When false, the comment may not be shown to the consumer.

Parameters:
guestViewable -

getCategory

public java.lang.String getCategory()
Get the 'Category' attribute value. An industry segment (e.g., Air, Hotel, Car) to which the comment refers.

Returns:
value

setCategory

public void setCategory(java.lang.String category)
Set the 'Category' attribute value. An industry segment (e.g., Air, Hotel, Car) to which the comment refers.

Parameters:
category -

getAirlineVendorPrefRPH

public java.lang.String getAirlineVendorPrefRPH()
Get the 'AirlineVendorPrefRPH' attribute value. Reference to an airline in AirlinePrefType/VendorPref.

Returns:
value

setAirlineVendorPrefRPH

public void setAirlineVendorPrefRPH(java.lang.String airlineVendorPrefRPH)
Set the 'AirlineVendorPrefRPH' attribute value. Reference to an airline in AirlinePrefType/VendorPref.

Parameters:
airlineVendorPrefRPH -

getTransferAction

public TransferAction getTransferAction()
Get the 'TransferAction' attribute value. Indicates under what conditions this element will be transfered to the booking.

Returns:
value

setTransferAction

public void setTransferAction(TransferAction transferAction)
Set the 'TransferAction' attribute value. Indicates under what conditions this element will be transfered to the booking.

Parameters:
transferAction -

getActionDate

public java.sql.Date getActionDate()
Get the 'ActionDate' attribute value. Indicates at which date an action described in the comment must be taken.

Returns:
value

setActionDate

public void setActionDate(java.sql.Date actionDate)
Set the 'ActionDate' attribute value. Indicates at which date an action described in the comment must be taken.

Parameters:
actionDate -