Package org.xwiki.rest.model.jaxb
Class Comments
- java.lang.Object
-
- org.xwiki.rest.model.jaxb.LinkCollection
-
- org.xwiki.rest.model.jaxb.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
Fields Modifier and Type Field Description protected List<Comment>
comments
-
Fields inherited from class org.xwiki.rest.model.jaxb.LinkCollection
links
-
-
Constructor Summary
Constructors Constructor Description Comments()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Comment>
getComments()
Gets the value of the comments property.Comments
withComments(Collection<Comment> values)
Comments
withComments(Comment... values)
Comments
withLinks(Collection<Link> values)
Comments
withLinks(Link... values)
-
Methods inherited from class org.xwiki.rest.model.jaxb.LinkCollection
getLinks
-
-
-
-
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
-
withComments
public Comments withComments(Collection<Comment> values)
-
withLinks
public Comments withLinks(Link... values)
- Overrides:
withLinks
in classLinkCollection
-
withLinks
public Comments withLinks(Collection<Link> values)
- Overrides:
withLinks
in classLinkCollection
-
-