Package org.odftoolkit.odfdom.type
Class StyleName
- java.lang.Object
-
- org.odftoolkit.odfdom.type.StyleName
-
- All Implemented Interfaces:
OdfDataType
public class StyleName extends Object implements OdfDataType
This class represents the in OpenDocument format used data type styleName
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
isValid(String styleName)
check if the specified String is a valid styleName data typeString
toString()
Returns a String Object representing this StyleName's valuestatic StyleName
valueOf(String styleName)
Returns StyleName which is represented by the specified String value
-
-
-
Constructor Detail
-
StyleName
public StyleName(String styleName) throws IllegalArgumentException
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 Detail
-
toString
public String toString()
Returns a String Object representing this StyleName's value
-
valueOf
public static StyleName valueOf(String styleName) throws IllegalArgumentException
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.
-
-