public class Translation extends DataWithExtAttributes
| Constructor and Description |
|---|
Translation(String text)
Creates a
Translation object with a given text. |
Translation(Translation original)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Indicates if this object is equals to a given one.
|
String |
getId()
Gets the id for this translation.
|
String |
getRef()
Gets the reference for this translation.
|
String |
getSource()
Gets the source of this field.
|
String |
getText()
Get the text of this field.
|
int |
hashCode() |
void |
setId(String id)
Sets the id for this translation.
|
void |
setRef(String ref)
Sets the reference for this translation.
|
void |
setSource(String source)
sets the source of this field.
|
void |
setText(String text)
Sets the text of this field.
|
getExtAttributes, getExtAttributeValue, hasExtAttribute, setExtAttributespublic Translation(String text)
Translation object with a given text.text - the text of the translation.public Translation(Translation original)
original - the original object to duplicate.public String getId()
public void setId(String id)
id - the new id for this translation (can be null).public String getRef()
public void setRef(String ref)
ref - the new reference for this translation.public String getText()
public void setText(String text)
text - the new text of this field (can be null).public String getSource()
public void setSource(String source)
source - the new source of this field (can be null).public int hashCode()
hashCode in class DataWithExtAttributespublic boolean equals(Object obj)
DataWithExtAttributesequals in class DataWithExtAttributesobj - the other object to compare.Copyright © 2020. All rights reserved.