public interface Castable
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
castToBoolean(java.lang.Boolean defaultValue)
cast the castable value to a boolean value
|
boolean |
castToBooleanValue()
cast the castable value to a boolean value
|
DateTime |
castToDateTime()
cast the castable value to a date time object
|
DateTime |
castToDateTime(DateTime defaultValue)
cast the castable value to a date time object
|
double |
castToDoubleValue()
cast the castable value to a double value
|
double |
castToDoubleValue(double defaultValue)
cast the castable value to a double value
|
java.lang.String |
castToString()
cast the castable value to a string, other than the Method toString, this Method can throw a Exception
|
java.lang.String |
castToString(java.lang.String defaultValue)
cast the castable value to a string, return the default value, when the method is not castable
|
int |
compareTo(boolean b) |
int |
compareTo(DateTime dt) |
int |
compareTo(double d) |
int |
compareTo(java.lang.String str) |
java.lang.String castToString() throws PageException
PageException
java.lang.String castToString(java.lang.String defaultValue)
PageException
boolean castToBooleanValue() throws PageException
PageException
java.lang.Boolean castToBoolean(java.lang.Boolean defaultValue)
PageException
double castToDoubleValue() throws PageException
PageException
double castToDoubleValue(double defaultValue)
PageException
DateTime castToDateTime() throws PageException
PageException
DateTime castToDateTime(DateTime defaultValue)
defaultValue
- returned when it is not possible to cast to a dateTime objectPageException
int compareTo(java.lang.String str) throws PageException
PageException
int compareTo(boolean b) throws PageException
PageException
int compareTo(double d) throws PageException
PageException
int compareTo(DateTime dt) throws PageException
PageException