public class Language extends Object implements OdfDataType
Constructor and Description |
---|
Language(String language)
Construct Language by the parsing the given string
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isValid(String stringValue)
check if the specified String instance is a valid language data type
|
String |
toString()
Returns a String Object representing this Language's value
|
static Language |
valueOf(String stringValue)
Returns a Language instance representing the specified String value
|
public Language(String language) throws IllegalArgumentException
language
- The String to be parsed into LanguageIllegalArgumentException
- if the given argument is not a valid Languagepublic String toString()
public static Language valueOf(String stringValue) throws IllegalArgumentException
stringValue
- a String valueIllegalArgumentException
- if the given argument is not a valid LanguageCopyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.