org.xwiki.rest.model.jaxb
Class LinkCollection
java.lang.Object
org.xwiki.rest.model.jaxb.LinkCollection
- Direct Known Subclasses:
- Attachment, Attachments, Attribute, Class, Classes, Comment, Comments, History, HistorySummary, Objects, ObjectSummary, Pages, PageSummary, Properties, Property, SearchResult, SearchResults, Space, Spaces, Syntaxes, Tag, Tags, Translation, Translations, Wiki, Wikis, Xwiki
public class LinkCollection
- extends java.lang.Object
Java class for LinkCollection complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="LinkCollection">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="link" type="{http://www.xwiki.org}Link" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
|
Field Summary |
protected java.util.List<Link> |
links
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
links
protected java.util.List<Link> links
LinkCollection
public LinkCollection()
getLinks
public java.util.List<Link> getLinks()
- Gets the value of the links 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 links property.
For example, to add a new item, do as follows:
getLinks().add(newItem);
Objects of the following type(s) are allowed in the list
Link
withLinks
public LinkCollection withLinks(Link... values)
withLinks
public LinkCollection withLinks(java.util.Collection<Link> values)
Copyright © 2004-2010 XWiki. All Rights Reserved.