org.xwiki.rest.model.jaxb
Class LinkCollection

java.lang.Object
  extended by 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 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  List<Link> links
           
 
Constructor Summary
LinkCollection()
           
 
Method Summary
 List<Link> getLinks()
          Gets the value of the links property.
 LinkCollection withLinks(Collection<Link> values)
           
 LinkCollection withLinks(Link... values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

links

protected List<Link> links
Constructor Detail

LinkCollection

public LinkCollection()
Method Detail

getLinks

public 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(Collection<Link> values)


Copyright © 2004-2013 XWiki. All Rights Reserved.