|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.odftoolkit.odfdom.type.CountryCode
public class CountryCode
This class represents the in OpenDocument format used data type countryCode
Constructor Summary | |
---|---|
CountryCode(String countryCode)
Construct CountryCode by the parsing the given string |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CountryCode(String countryCode) throws IllegalArgumentException
countryCode
- The String to be parsed into CountryCode
IllegalArgumentException
- if the given argument is not a valid CountryCodeMethod Detail |
---|
public String toString()
toString
in class Object
public static CountryCode valueOf(String stringValue) throws IllegalArgumentException
stringValue
- a String value
IllegalArgumentException
- if the given argument is not a valid CountryCodepublic static boolean isValid(String stringValue)
stringValue
- the value to be tested
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |