Package org.odftoolkit.odfdom.type
Class Language
java.lang.Object
org.odftoolkit.odfdom.type.Language
- All Implemented Interfaces:
OdfDataType
This class represents the in OpenDocument format used data type language
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Language
Construct Language by the parsing the given string- Parameters:
language
- The String to be parsed into Language- Throws:
IllegalArgumentException
- if the given argument is not a valid Language
-
-
Method Details
-
toString
Returns a String Object representing this Language's value -
valueOf
Returns a Language instance representing the specified String value- Parameters:
stringValue
- a String value- Returns:
- return a Language instance representing stringValue
- Throws:
IllegalArgumentException
- if the given argument is not a valid Language
-
isValid
check if the specified String instance is a valid language data type- Parameters:
stringValue
- the value to be tested- Returns:
- true if the value of argument is valid for language data type false otherwise
-