public class CountryCode extends Object implements OdfDataType
| Constructor and Description |
|---|
CountryCode(String countryCode)
Construct CountryCode by the parsing the given string
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isValid(String stringValue)
check if the specified String is a valid countryCode data type
|
String |
toString()
Returns a String Object representing this CountryCode's value
|
static CountryCode |
valueOf(String stringValue)
Returns a CountryCode instance representing the specified String value
|
public CountryCode(String countryCode) throws IllegalArgumentException
countryCode - The String to be parsed into CountryCodeIllegalArgumentException - if the given argument is not a valid CountryCodepublic String toString()
public static CountryCode valueOf(String stringValue) throws IllegalArgumentException
stringValue - a String valueIllegalArgumentException - if the given argument is not a valid CountryCodepublic static boolean isValid(String stringValue)
stringValue - the value to be testedCopyright © 2008–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.