org.odftoolkit.odfdom.type
Class StyleName

java.lang.Object
  extended by org.odftoolkit.odfdom.type.StyleName
All Implemented Interfaces:
OdfDataType

public class StyleName
extends java.lang.Object
implements OdfDataType

This class represents the in OpenDocument format used data type


Constructor Summary
StyleName(java.lang.String styleName)
          Construct StyleName by the parsing the given string
 
Method Summary
static boolean isValid(java.lang.String styleName)
          check if the specified String is a valid data type
 java.lang.String toString()
          Returns a String Object representing this StyleName's value
static StyleName valueOf(java.lang.String styleName)
          Returns StyleName which is represented by the specified String value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StyleName

public StyleName(java.lang.String styleName)
          throws java.lang.IllegalArgumentException
Construct StyleName by the parsing the given string

Parameters:
styleName - The String to be parsed into StyleName
Throws:
java.lang.IllegalArgumentException - If the given StyleName is null or not valid.
Method Detail

toString

public java.lang.String toString()
Returns a String Object representing this StyleName's value

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the value of this StyleName object

valueOf

public static StyleName valueOf(java.lang.String styleName)
                         throws java.lang.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:
java.lang.IllegalArgumentException - If the given StyleName is null or not valid.

isValid

public static boolean isValid(java.lang.String styleName)
check if the specified String is a valid data type

Parameters:
styleName - the value to be tested
Returns:
true if the value of argument is valid for data type false otherwise


Copyright © 2008-2010 ODF Toolkit Project. All Rights Reserved.