|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Text
Defines a natural language text in a given language.
The text MUST NOT be null nor an empty String. The
language may be null (indicating the default language) or any
kind of value. It is recommended to use ISO 639-1 codes (two Letter codes).
By definition it is also allowed to use empty strings as language. However
implementations of this interface are free to convert the empty language to
null.
Implementations of that interface MUST BE immutable
| Method Summary | |
|---|---|
String |
getLanguage()
Getter for the language. |
String |
getText()
Getter for the text (not null nor empty) |
String |
toString()
The text without language information - this is the same as returned by getText(). |
| Method Detail |
|---|
String getText()
null nor empty)
String getLanguage()
null or an empty string indicate,
that the text is not specific to a language (e.g. the name of a person).
Note that implementation can change empty values to null but.
String toString()
getText().
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||