Package org.odftoolkit.odfdom.type
Class Formula
- java.lang.Object
-
- org.odftoolkit.odfdom.type.Formula
-
- All Implemented Interfaces:
OdfDataType
public class Formula extends Object implements OdfDataType
This class represents the in OpenDocument format used data type formula
-
-
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 formula data typeString
toString()
Returns a String Object representing this Formula's valuestatic Formula
valueOf(String stringValue)
Returns a Formula instance representing the specified String value
-
-
-
Constructor Detail
-
Formula
public Formula(String formula) throws IllegalArgumentException
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 Detail
-
toString
public String toString()
Returns a String Object representing this Formula's value
-
valueOf
public static Formula valueOf(String stringValue) throws IllegalArgumentException
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
-
-