Package org.odftoolkit.odfdom.type
Class Formula
java.lang.Object
org.odftoolkit.odfdom.type.Formula
- All Implemented Interfaces:
OdfDataType
This class represents the in OpenDocument format used data type formula
-
Constructor Details
-
Formula
Construct Formula by the parsing the given string- Parameters:
formula
- The String to be parsed into Formula- Throws:
IllegalArgumentException
- if the given argument is not a valid Formula
-
-
Method Details
-
toString
Returns a String Object representing this Formula's value -
valueOf
Returns a Formula instance representing the specified String value- Parameters:
stringValue
- a String value- Returns:
- return a Formula instance representing stringValue
- Throws:
IllegalArgumentException
- if the given argument is not a valid Formula
-
isValid
check if the specified String is a valid formula data type- Parameters:
stringValue
- the value to be tested- Returns:
- true if the value of argument is valid for formula data type false otherwise
-