org.gedcomx.common
Class TextValue

java.lang.Object
  extended by org.gedcomx.common.TextValue

public class TextValue
extends Object

An element representing a text value that may be in a specific language.


Constructor Summary
TextValue()
           
TextValue(String value)
           
 
Method Summary
 boolean equals(Object o)
           
 String getLang()
          The language of the text value.
 String getValue()
          The text value.
 int hashCode()
           
 TextValue lang(String lang)
          Build up this text value with a lang.
 void setLang(String lang)
          The language of the text value.
 void setValue(String value)
          The text value.
 String toString()
           
 TextValue value(String value)
          Build up this text value with a value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015. All rights reserved.