Package org.odftoolkit.odfdom.type
Class StyleNameRef
java.lang.Object
org.odftoolkit.odfdom.type.StyleNameRef
- All Implemented Interfaces:
OdfDataType
This class represents the in OpenDocument format used data type styleNameRef
-
Constructor Summary
ConstructorDescriptionStyleNameRef
(String styleNameRef) Construct StyleNameRef by the parsing the given string -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
check if the specified String is a valid styleNameRef data typetoString()
Returns a String Object representing this StyleNameRef's valuestatic StyleNameRef
Returns a StyleNameRef instance representing the specified String value
-
Constructor Details
-
StyleNameRef
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 Details
-
toString
Returns a String Object representing this StyleNameRef's value -
valueOf
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
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
-