Package org.odftoolkit.odfdom.type
Class StyleName
java.lang.Object
org.odftoolkit.odfdom.type.StyleName
- All Implemented Interfaces:
OdfDataType
This class represents the in OpenDocument format used data type styleName
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
StyleName
Construct StyleName by the parsing the given string- Parameters:
styleName
- The String to be parsed into StyleName- Throws:
IllegalArgumentException
- If the given StyleName is null or not valid.
-
-
Method Details
-
toString
Returns a String Object representing this StyleName's value -
valueOf
Returns StyleName which is represented by the specified String value- Parameters:
styleName
- a String value which can construct an StyleName- Returns:
- a String representation of an StyleName instance constructed by styleName
- Throws:
IllegalArgumentException
- If the given StyleName is null or not valid.
-
isValid
check if the specified String is a valid styleName data type- Parameters:
styleName
- the value to be tested- Returns:
- true if the value of argument is valid for styleName data type false otherwise
-