org.ota.profile
Class Profile.Comments

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

public static class Profile.Comments
extends java.lang.Object

Comments related to the profile. 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="Comments" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="Comment" maxOccurs="unbounded">
         <!-- Reference to inner class Comment -->
       </xs:element>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class Profile.Comments.Comment
          Comment details.
 
Constructor Summary
Profile.Comments()
           
 
Method Summary
 void addComment(Profile.Comments.Comment item)
          Add a 'Comment' element item.
 void clearComments()
          Remove all 'Comment' element items.
 Profile.Comments.Comment getComment(int index)
          Get 'Comment' element item by position.
 java.util.List<Profile.Comments.Comment> getComments()
          Get the list of 'Comment' element items.
 void setComments(java.util.List<Profile.Comments.Comment> list)
          Set the list of 'Comment' element items.
 int sizeComments()
          Get the number of 'Comment' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Profile.Comments

public Profile.Comments()
Method Detail

getComments

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

Returns:
list

setComments

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

Parameters:
list -

sizeComments

public int sizeComments()
Get the number of 'Comment' element items.

Returns:
count

addComment

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

Parameters:
item -

getComment

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

Parameters:
index -
Returns:
item

clearComments

public void clearComments()
Remove all 'Comment' element items.