eu.monnetproject.lemon.model
Class Text

java.lang.Object
  extended by eu.monnetproject.lemon.model.Text
All Implemented Interfaces:
Serializable

public final class Text
extends Object
implements Serializable

A language tagged string. Note these objects are immutable

See Also:
Serialized Form

Field Summary
 String language
          The language of the string
 String value
          The value of the string
 
Constructor Summary
Text(String value, String language)
          Construct a new text object
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public final String value
The value of the string


language

public final String language
The language of the string

Constructor Detail

Text

public Text(String value,
            String language)
Construct a new text object

Method Detail

toString

public String toString()
Overrides:
toString in class Object

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2012. All Rights Reserved.