org.odftoolkit.odfdom.type
public class LanguageCode extends Object implements OdfDataType
Constructor and Description |
---|
LanguageCode(String languageCode)
Construct LanguageCode 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 languageCode data type
|
String |
toString()
Returns a String Object representing this LanguageCode's value
|
static LanguageCode |
valueOf(String stringValue)
Returns a LanguageCode instance representing the specified String value
|
public LanguageCode(String languageCode) throws IllegalArgumentException
languageCode
- The String to be parsed into LanguageCodeIllegalArgumentException
- if the given argument is not a valid langageCodepublic String toString()
public static LanguageCode valueOf(String stringValue) throws IllegalArgumentException
stringValue
- a String valueIllegalArgumentException
- if the given argument is not a valid LanguageCodepublic static boolean isValid(String stringValue)
stringValue
- the value to be testedCopyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.