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>
Modifier and Type | Field and Description |
---|---|
protected List<Attachment> |
attachments |
links
Constructor and Description |
---|
Attachments() |
Modifier and Type | Method and Description |
---|---|
List<Attachment> |
getAttachments()
Gets the value of the attachments property.
|
Attachments |
withAttachments(Attachment... values) |
Attachments |
withAttachments(Collection<Attachment> values) |
Attachments |
withLinks(Collection<Link> values) |
Attachments |
withLinks(Link... values) |
getLinks
protected List<Attachment> attachments
public List<Attachment> getAttachments()
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
public Attachments withAttachments(Attachment... values)
public Attachments withAttachments(Collection<Attachment> values)
public Attachments withLinks(Link... values)
withLinks
in class LinkCollection
public Attachments withLinks(Collection<Link> values)
withLinks
in class LinkCollection
Copyright © 2004–2019 XWiki. All rights reserved.