public interface Text
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
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.Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.