org.ota.shared
Class Comment

java.lang.Object
  extended by org.ota.shared.Comment

public class Comment
extends java.lang.Object

A collection of comments. 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="CommentType">
   <xs:sequence>
     <xs:element name="Comment" maxOccurs="unbounded">
       <!-- Reference to inner class CommentInner -->
     </xs:element>
   </xs:sequence>
 </xs:complexType>
 


Nested Class Summary
static class Comment.CommentInner
          Comment details.
 
Constructor Summary
Comment()
           
 
Method Summary
 void addComment(Comment.CommentInner item)
          Add a 'Comment' element item.
 void clearComments()
          Remove all 'Comment' element items.
 Comment.CommentInner getComment(int index)
          Get 'Comment' element item by position.
 java.util.List<Comment.CommentInner> getComments()
          Get the list of 'Comment' element items.
 void setComments(java.util.List<Comment.CommentInner> 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

Comment

public Comment()
Method Detail

getComments

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

Returns:
list

setComments

public void setComments(java.util.List<Comment.CommentInner> 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(Comment.CommentInner item)
Add a 'Comment' element item.

Parameters:
item -

getComment

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

Parameters:
index -
Returns:
item

clearComments

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