Class Translation
- java.lang.Object
-
- org.xwiki.localization.rest.model.jaxb.Translation
-
public class Translation extends Object
Stores the information of a translation. Currently this includes the translation key, and the raw source of the translation in a requested locale.Java class for Translation complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Translation"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="key" type="{http://www.w3.org/2001/XMLSchema}string"/> <element name="rawSource" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType>
-
-
Constructor Summary
Constructors Constructor Description Translation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getKey()
Gets the value of the key property.String
getRawSource()
Gets the value of the rawSource property.void
setKey(String value)
Sets the value of the key property.void
setRawSource(String value)
Sets the value of the rawSource property.Translation
withKey(String value)
Translation
withRawSource(String value)
-
-
-
Method Detail
-
getKey
public String getKey()
Gets the value of the key property.- Returns:
- possible object is
String
-
setKey
public void setKey(String value)
Sets the value of the key property.- Parameters:
value
- allowed object isString
-
getRawSource
public String getRawSource()
Gets the value of the rawSource property.- Returns:
- possible object is
String
-
setRawSource
public void setRawSource(String value)
Sets the value of the rawSource property.- Parameters:
value
- allowed object isString
-
withKey
public Translation withKey(String value)
-
withRawSource
public Translation withRawSource(String value)
-
-