org.odftoolkit.odfdom.type
Class StyleNameRef

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

public class StyleNameRef
extends Object
implements OdfDataType

This class represents the in OpenDocument format used data type styleNameRef


Constructor Summary
StyleNameRef(String styleNameRef)
          Construct StyleNameRef by the parsing the given string
 
Method Summary
static boolean isValid(String stringValue)
          check if the specified String is a valid styleNameRef data type
 String toString()
          Returns a String Object representing this StyleNameRef's value
static StyleNameRef valueOf(String stringValue)
          Returns a StyleNameRef 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

StyleNameRef

public StyleNameRef(String styleNameRef)
             throws IllegalArgumentException
Construct StyleNameRef by the parsing the given string

Parameters:
styleNameRef - The String to be parsed into StyleNameRef
Throws:
IllegalArgumentException - if the given argument is not a valid StyleNameRef
Method Detail

toString

public String toString()
Returns a String Object representing this StyleNameRef's value

Overrides:
toString in class Object
Returns:
return a string representation of the value of this StyleNameRef object

valueOf

public static StyleNameRef valueOf(String stringValue)
                            throws IllegalArgumentException
Returns a StyleNameRef instance representing the specified String value

Parameters:
stringValue - a String value which can construct an OdfStyleNameRef
Returns:
a StyleNameRef instance representing stringValue
Throws:
IllegalArgumentException

isValid

public static boolean isValid(String stringValue)
check if the specified String is a valid styleNameRef data type

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


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.