Package org.gedcomx.common
Class TextValue
- java.lang.Object
-
- org.gedcomx.common.TextValue
-
public class TextValue extends Object
An element representing a text value that may be in a specific language.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetLang()The language of the text value.StringgetValue()The text value.inthashCode()TextValuelang(String lang)Build up this text value with a lang.voidsetLang(String lang)The language of the text value.voidsetValue(String value)The text value.StringtoString()TextValuevalue(String value)Build up this text value with a value.
-
-
-
Constructor Detail
-
TextValue
public TextValue()
-
TextValue
public TextValue(String value)
-
-
Method Detail
-
getLang
public String getLang()
The language of the text value. See http://www.w3.org/International/articles/language-tags/- Returns:
- The language of the text value.
-
setLang
public void setLang(String lang)
The language of the text value. See http://www.w3.org/International/articles/language-tags/- Parameters:
lang- The language of the text value.
-
lang
public TextValue lang(String lang)
Build up this text value with a lang.- Parameters:
lang- The lang.- Returns:
- this.
-
getValue
public String getValue()
The text value.- Returns:
- The text value.
-
setValue
public void setValue(String value)
The text value.- Parameters:
value- The text value.
-
value
public TextValue value(String value)
Build up this text value with a value.- Parameters:
value- The value.- Returns:
- this.
-
-