org.exoplatform.wiki.service.rest.model
Class Comments

java.lang.Object
  extended by org.exoplatform.wiki.service.rest.model.LinkCollection
      extended by org.exoplatform.wiki.service.rest.model.Comments

public class Comments
extends LinkCollection

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <extension base="{http://www.xwiki.org}LinkCollection">
       <sequence>
         <element name="comment" type="{http://www.xwiki.org}Comment" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 


Field Summary
protected  List<Comment> comments
           
 
Fields inherited from class org.exoplatform.wiki.service.rest.model.LinkCollection
links
 
Constructor Summary
Comments()
           
 
Method Summary
 List<Comment> getComments()
          Gets the value of the comments property.
 
Methods inherited from class org.exoplatform.wiki.service.rest.model.LinkCollection
getLinks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

comments

protected List<Comment> comments
Constructor Detail

Comments

public Comments()
Method Detail

getComments

public List<Comment> getComments()
Gets the value of the comments property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the comments property.

For example, to add a new item, do as follows:

    getComments().add(newItem);
 

Objects of the following type(s) are allowed in the list Comment



Copyright © 2013 eXo Platform SAS. All Rights Reserved.