|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TypeRegistry
The type registry manages the known value types.
| Method Summary | |
|---|---|
TypeValuePair |
convertTo(Type targetType,
TypeValuePair valuePair)
Checks whether the target type would accept the specified value object and value type. |
ArrayCallback |
convertToArray(Type type,
Object value)
|
Date |
convertToDate(Type type1,
Object value)
Converts the object of the given type into a date. |
Boolean |
convertToLogical(Type type1,
Object value)
Converts the object of the given type into a boolean. |
Number |
convertToNumber(Type type1,
Object value)
Converts the object of the given type into a number. |
NumberSequence |
convertToNumberSequence(Type type,
Object value,
boolean strictTypeChecks)
Converts the given (type,value) pair into a numeric sequence. |
Sequence |
convertToSequence(Type type,
Object value)
|
String |
convertToText(Type type1,
Object value)
(This conversion is used by the operator implementations.) |
ExtendedComparator |
getComparator(Type type1,
Type type2)
Returns an comparator for the given types. |
Type |
guessTypeOfObject(Object o)
|
| Method Detail |
|---|
ExtendedComparator getComparator(Type type1,
Type type2)
type1 - type2 -
Number convertToNumber(Type type1,
Object value)
throws EvaluationException
type1 - value -
TypeConversionException - if the type cannot be represented as number.
EvaluationException
String convertToText(Type type1,
Object value)
throws EvaluationException
type1 - value -
TypeConversionException
EvaluationException
Boolean convertToLogical(Type type1,
Object value)
throws EvaluationException
type1 - value -
EvaluationException
Date convertToDate(Type type1,
Object value)
throws EvaluationException
type1 - value -
EvaluationException
NumberSequence convertToNumberSequence(Type type,
Object value,
boolean strictTypeChecks)
throws EvaluationException
type - value - strictTypeChecks -
TypeConversionException
EvaluationException
Sequence convertToSequence(Type type,
Object value)
throws EvaluationException
EvaluationException
ArrayCallback convertToArray(Type type,
Object value)
throws EvaluationException
EvaluationException
TypeValuePair convertTo(Type targetType,
TypeValuePair valuePair)
throws EvaluationException
targetType - valuePair -
EvaluationExceptionType guessTypeOfObject(Object o)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||