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