Package org.odftoolkit.odfdom.type
Class StyleNameRef
- java.lang.Object
-
- 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
Constructors Constructor Description StyleNameRef(String styleNameRef)
Construct StyleNameRef by the parsing the given string
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
isValid(String stringValue)
check if the specified String is a valid styleNameRef data typeString
toString()
Returns a String Object representing this StyleNameRef's valuestatic StyleNameRef
valueOf(String stringValue)
Returns a StyleNameRef instance representing the specified String value
-
-
-
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
-
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
-
-