Package org.xwiki.rest.model.jaxb
Class Translations
- java.lang.Object
-
- org.xwiki.rest.model.jaxb.LinkCollection
-
- org.xwiki.rest.model.jaxb.Translations
-
public class Translations extends LinkCollection
Java class for Translations complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Translations"> <complexContent> <extension base="{http://www.xwiki.org}LinkCollection"> <sequence> <element name="translation" type="{http://www.xwiki.org}Translation" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="default" type="{http://www.w3.org/2001/XMLSchema}string" /> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected String
_default
protected List<Translation>
translations
-
Fields inherited from class org.xwiki.rest.model.jaxb.LinkCollection
links
-
-
Constructor Summary
Constructors Constructor Description Translations()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDefault()
Gets the value of the default property.List<Translation>
getTranslations()
Gets the value of the translations property.void
setDefault(String value)
Sets the value of the default property.Translations
withDefault(String value)
Translations
withLinks(Collection<Link> values)
Translations
withLinks(Link... values)
Translations
withTranslations(Collection<Translation> values)
Translations
withTranslations(Translation... values)
-
Methods inherited from class org.xwiki.rest.model.jaxb.LinkCollection
getLinks
-
-
-
-
Field Detail
-
translations
protected List<Translation> translations
-
_default
protected String _default
-
-
Method Detail
-
getTranslations
public List<Translation> getTranslations()
Gets the value of the translations 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 translations property.For example, to add a new item, do as follows:
getTranslations().add(newItem);
Objects of the following type(s) are allowed in the list
Translation
-
getDefault
public String getDefault()
Gets the value of the default property.- Returns:
- possible object is
String
-
setDefault
public void setDefault(String value)
Sets the value of the default property.- Parameters:
value
- allowed object isString
-
withTranslations
public Translations withTranslations(Translation... values)
-
withTranslations
public Translations withTranslations(Collection<Translation> values)
-
withDefault
public Translations withDefault(String value)
-
withLinks
public Translations withLinks(Link... values)
- Overrides:
withLinks
in classLinkCollection
-
withLinks
public Translations withLinks(Collection<Link> values)
- Overrides:
withLinks
in classLinkCollection
-
-