Package org.xwiki.rest.model.jaxb
Class Attachments
- java.lang.Object
-
- org.xwiki.rest.model.jaxb.LinkCollection
-
- org.xwiki.rest.model.jaxb.Attachments
-
public class Attachments extends LinkCollection
Java class for Attachments complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Attachments"> <complexContent> <extension base="{http://www.xwiki.org}LinkCollection"> <sequence> <element name="attachment" type="{http://www.xwiki.org}Attachment" maxOccurs="unbounded" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Attachment>
attachments
-
Fields inherited from class org.xwiki.rest.model.jaxb.LinkCollection
links
-
-
Constructor Summary
Constructors Constructor Description Attachments()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Attachment>
getAttachments()
Gets the value of the attachments property.Attachments
withAttachments(Collection<Attachment> values)
Attachments
withAttachments(Attachment... values)
Attachments
withLinks(Collection<Link> values)
Attachments
withLinks(Link... values)
-
Methods inherited from class org.xwiki.rest.model.jaxb.LinkCollection
getLinks
-
-
-
-
Field Detail
-
attachments
protected List<Attachment> attachments
-
-
Method Detail
-
getAttachments
public List<Attachment> getAttachments()
Gets the value of the attachments 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 attachments property.For example, to add a new item, do as follows:
getAttachments().add(newItem);
Objects of the following type(s) are allowed in the list
Attachment
-
withAttachments
public Attachments withAttachments(Attachment... values)
-
withAttachments
public Attachments withAttachments(Collection<Attachment> values)
-
withLinks
public Attachments withLinks(Link... values)
- Overrides:
withLinks
in classLinkCollection
-
withLinks
public Attachments withLinks(Collection<Link> values)
- Overrides:
withLinks
in classLinkCollection
-
-