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

java.lang.Object
  extended by org.xwiki.extension.repository.xwiki.model.jaxb.LinkCollection
      extended by org.xwiki.extension.repository.xwiki.model.jaxb.ExtensionSummary
          extended by org.xwiki.extension.repository.xwiki.model.jaxb.AbstractExtension
              extended by org.xwiki.extension.repository.xwiki.model.jaxb.ExtensionVersion

public class ExtensionVersion
extends AbstractExtension

Java class for ExtensionVersion complex type.

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

 <complexType name="ExtensionVersion">
   <complexContent>
     <extension base="{http://www.xwiki.org/extension}AbstractExtension">
       <sequence>
         <element name="version" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="dependencies" type="{http://www.xwiki.org/extension}ExtensionDependency" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 


Field Summary
protected  List<ExtensionDependency> dependencies
           
protected  String version
           
 
Fields inherited from class org.xwiki.extension.repository.xwiki.model.jaxb.AbstractExtension
authors, description, features, licenses, summary, website
 
Fields inherited from class org.xwiki.extension.repository.xwiki.model.jaxb.ExtensionSummary
id, name, type
 
Fields inherited from class org.xwiki.extension.repository.xwiki.model.jaxb.LinkCollection
links
 
Constructor Summary
ExtensionVersion()
           
 
Method Summary
 List<ExtensionDependency> getDependencies()
          Gets the value of the dependencies property.
 String getVersion()
          Gets the value of the version property.
 void setVersion(String value)
          Sets the value of the version property.
 ExtensionVersion withAuthors(Collection<ExtensionAuthor> values)
           
 ExtensionVersion withAuthors(ExtensionAuthor... values)
           
 ExtensionVersion withDependencies(Collection<ExtensionDependency> values)
           
 ExtensionVersion withDependencies(ExtensionDependency... values)
           
 ExtensionVersion withDescription(String value)
           
 ExtensionVersion withFeatures(Collection<String> values)
           
 ExtensionVersion withFeatures(String... values)
           
 ExtensionVersion withId(String value)
           
 ExtensionVersion withLicenses(Collection<License> values)
           
 ExtensionVersion withLicenses(License... values)
           
 ExtensionVersion withLinks(Collection<Link> values)
           
 ExtensionVersion withLinks(Link... values)
           
 ExtensionVersion withName(String value)
           
 ExtensionVersion withSummary(String value)
           
 ExtensionVersion withType(String value)
           
 ExtensionVersion withVersion(String value)
           
 ExtensionVersion withWebsite(String value)
           
 
Methods inherited from class org.xwiki.extension.repository.xwiki.model.jaxb.AbstractExtension
getAuthors, getDescription, getFeatures, getLicenses, getSummary, getWebsite, setDescription, setSummary, setWebsite
 
Methods inherited from class org.xwiki.extension.repository.xwiki.model.jaxb.ExtensionSummary
getId, getName, getType, setId, setName, setType
 
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

version

protected String version

dependencies

protected List<ExtensionDependency> dependencies
Constructor Detail

ExtensionVersion

public ExtensionVersion()
Method Detail

getVersion

public String getVersion()
Gets the value of the version property.

Returns:
possible object is String

setVersion

public void setVersion(String value)
Sets the value of the version property.

Parameters:
value - allowed object is String

getDependencies

public List<ExtensionDependency> getDependencies()
Gets the value of the dependencies 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 dependencies property.

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

    getDependencies().add(newItem);
 

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


withVersion

public ExtensionVersion withVersion(String value)

withDependencies

public ExtensionVersion withDependencies(ExtensionDependency... values)

withDependencies

public ExtensionVersion withDependencies(Collection<ExtensionDependency> values)

withSummary

public ExtensionVersion withSummary(String value)
Overrides:
withSummary in class AbstractExtension

withDescription

public ExtensionVersion withDescription(String value)
Overrides:
withDescription in class AbstractExtension

withLicenses

public ExtensionVersion withLicenses(License... values)
Overrides:
withLicenses in class AbstractExtension

withLicenses

public ExtensionVersion withLicenses(Collection<License> values)
Overrides:
withLicenses in class AbstractExtension

withWebsite

public ExtensionVersion withWebsite(String value)
Overrides:
withWebsite in class AbstractExtension

withAuthors

public ExtensionVersion withAuthors(ExtensionAuthor... values)
Overrides:
withAuthors in class AbstractExtension

withAuthors

public ExtensionVersion withAuthors(Collection<ExtensionAuthor> values)
Overrides:
withAuthors in class AbstractExtension

withFeatures

public ExtensionVersion withFeatures(String... values)
Overrides:
withFeatures in class AbstractExtension

withFeatures

public ExtensionVersion withFeatures(Collection<String> values)
Overrides:
withFeatures in class AbstractExtension

withId

public ExtensionVersion withId(String value)
Overrides:
withId in class AbstractExtension

withName

public ExtensionVersion withName(String value)
Overrides:
withName in class AbstractExtension

withType

public ExtensionVersion withType(String value)
Overrides:
withType in class AbstractExtension

withLinks

public ExtensionVersion withLinks(Link... values)
Overrides:
withLinks in class AbstractExtension

withLinks

public ExtensionVersion withLinks(Collection<Link> values)
Overrides:
withLinks in class AbstractExtension


Copyright © 2004-2013 XWiki. All Rights Reserved.