org.xwiki.extension.repository.xwiki.model.jaxb
Class ExtensionsSearchResult

java.lang.Object
  extended by org.xwiki.extension.repository.xwiki.model.jaxb.LinkCollection
      extended by org.xwiki.extension.repository.xwiki.model.jaxb.ExtensionsSearchResult

public class ExtensionsSearchResult
extends LinkCollection

Java class for ExtensionsSearchResult complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="ExtensionsSearchResult">
   <complexContent>
     <extension base="{http://www.xwiki.org/extension}LinkCollection">
       <sequence>
         <element name="totalHits" type="{http://www.w3.org/2001/XMLSchema}int"/>
         <element name="offset" type="{http://www.w3.org/2001/XMLSchema}int"/>
         <element name="extensions" type="{http://www.xwiki.org/extension}ExtensionVersion" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 


Field Summary
protected  List<ExtensionVersion> extensions
           
protected  int offset
           
protected  int totalHits
           
 
Fields inherited from class org.xwiki.extension.repository.xwiki.model.jaxb.LinkCollection
links
 
Constructor Summary
ExtensionsSearchResult()
           
 
Method Summary
 List<ExtensionVersion> getExtensions()
          Gets the value of the extensions property.
 int getOffset()
          Gets the value of the offset property.
 int getTotalHits()
          Gets the value of the totalHits property.
 void setOffset(int value)
          Sets the value of the offset property.
 void setTotalHits(int value)
          Sets the value of the totalHits property.
 ExtensionsSearchResult withExtensions(Collection<ExtensionVersion> values)
           
 ExtensionsSearchResult withExtensions(ExtensionVersion... values)
           
 ExtensionsSearchResult withLinks(Collection<Link> values)
           
 ExtensionsSearchResult withLinks(Link... values)
           
 ExtensionsSearchResult withOffset(int value)
           
 ExtensionsSearchResult withTotalHits(int value)
           
 
Methods inherited from class org.xwiki.extension.repository.xwiki.model.jaxb.LinkCollection
getLinks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

totalHits

protected int totalHits

offset

protected int offset

extensions

protected List<ExtensionVersion> extensions
Constructor Detail

ExtensionsSearchResult

public ExtensionsSearchResult()
Method Detail

getTotalHits

public int getTotalHits()
Gets the value of the totalHits property.


setTotalHits

public void setTotalHits(int value)
Sets the value of the totalHits property.


getOffset

public int getOffset()
Gets the value of the offset property.


setOffset

public void setOffset(int value)
Sets the value of the offset property.


getExtensions

public List<ExtensionVersion> getExtensions()
Gets the value of the extensions 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 extensions property.

For example, to add a new item, do as follows:

    getExtensions().add(newItem);
 

Objects of the following type(s) are allowed in the list ExtensionVersion


withTotalHits

public ExtensionsSearchResult withTotalHits(int value)

withOffset

public ExtensionsSearchResult withOffset(int value)

withExtensions

public ExtensionsSearchResult withExtensions(ExtensionVersion... values)

withExtensions

public ExtensionsSearchResult withExtensions(Collection<ExtensionVersion> values)

withLinks

public ExtensionsSearchResult withLinks(Link... values)
Overrides:
withLinks in class LinkCollection

withLinks

public ExtensionsSearchResult withLinks(Collection<Link> values)
Overrides:
withLinks in class LinkCollection


Copyright © 2004-2013 XWiki. All Rights Reserved.