Package org.odftoolkit.odfdom.type
Class Language
- java.lang.Object
-
- org.odftoolkit.odfdom.type.Language
-
- All Implemented Interfaces:
OdfDataType
public class Language extends Object implements OdfDataType
This class represents the in OpenDocument format used data type language
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
isValid(String stringValue)
check if the specified String instance is a valid language data typeString
toString()
Returns a String Object representing this Language's valuestatic Language
valueOf(String stringValue)
Returns a Language instance representing the specified String value
-
-
-
Constructor Detail
-
Language
public Language(String language) throws IllegalArgumentException
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 Detail
-
toString
public String toString()
Returns a String Object representing this Language's value
-
valueOf
public static Language valueOf(String stringValue) throws IllegalArgumentException
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
-
-