org.jfree.formula.typing
public class DefaultTypeRegistry extends Object implements TypeRegistry
Constructor Summary | |
---|---|
DefaultTypeRegistry() |
Method Summary | |
---|---|
TypeValuePair | convertTo(Type targetType, TypeValuePair valuePair)
Checks, whether the target type would accept the specified value object and value type. This method is called for auto conversion of fonction parameters using the conversion type declared by the function metadata. |
Date | convertToDate(Type type1, Object value) |
Boolean | convertToLogical(Type type1, Object value) |
Number | convertToNumber(Type type1, Object value)
converts the object of the given type into a number. |
NumberSequence | convertToNumberSequence(Type type, Object value) |
String | convertToText(Type type1, Object value) |
ExtendedComparator | getComparator(Type type1, Type type2)
Returns an comparator for the given types.
|
protected NumberFormat | getDefaultNumberFormat() |
Type | guessTypeOfObject(Object o) |
void | initialize(Configuration configuration, FormulaContext formulaContext) |
protected NumberFormat[] | loadNumberFormats() |
Parameters: targetType valuePair
Parameters: type1 value
Returns:
Throws: NumberFormatException if the type cannot be represented as number.
Parameters: type1 type2
Returns: