|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.rest.model.jaxb.LinkCollection
org.xwiki.rest.model.jaxb.Translations
public class Translations
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 | |
|---|---|
protected java.lang.String |
_default
|
protected java.util.List<Translation> |
translations
|
| Fields inherited from class org.xwiki.rest.model.jaxb.LinkCollection |
|---|
links |
| Constructor Summary | |
|---|---|
Translations()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDefault()
Gets the value of the default property. |
java.util.List<Translation> |
getTranslations()
Gets the value of the translations property. |
void |
setDefault(java.lang.String value)
Sets the value of the default property. |
Translations |
withDefault(java.lang.String value)
|
Translations |
withLinks(java.util.Collection<Link> values)
|
Translations |
withLinks(Link... values)
|
Translations |
withTranslations(java.util.Collection<Translation> values)
|
Translations |
withTranslations(Translation... values)
|
| Methods inherited from class org.xwiki.rest.model.jaxb.LinkCollection |
|---|
getLinks |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<Translation> translations
protected java.lang.String _default
| Constructor Detail |
|---|
public Translations()
| Method Detail |
|---|
public java.util.List<Translation> getTranslations()
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
public java.lang.String getDefault()
Stringpublic void setDefault(java.lang.String value)
value - allowed object is
Stringpublic Translations withTranslations(Translation... values)
public Translations withTranslations(java.util.Collection<Translation> values)
public Translations withDefault(java.lang.String value)
public Translations withLinks(Link... values)
withLinks in class LinkCollectionpublic Translations withLinks(java.util.Collection<Link> values)
withLinks in class LinkCollection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||