Static Public Member Functions | |
static String | guessType (String value) |
Static Public Attributes | |
static final String | BOOLEAN_TYPE = "boolean" |
static final String | DATE_TYPE = "date" |
static final String | DATETIME_TYPE = "dateTime" |
static final String | DOUBLE_TYPE = "double" |
static final String | FLOAT_TYPE = "float" |
static final String | INTEGER_TYPE = "integer" |
static final String | LONG_TYPE = "long" |
static final String | STRING_TYPE = "string" |
static final String | TIME_TYPE = "time" |
Static Protected Member Functions | |
static String | whichType (String type1, String type2) |
A class used for "guessing" the proper datatype of an XML attribute or an XML element with simpleContent.
static String org.exolab.castor.xml.schema.util.DatatypeHandler.guessType | ( | String | value | ) | [static] |
Guesses the datatype for the given value. When the type cannot be determined, it simply defaults to DatatypeHandler.STRING_TYPE.
Note: This may be a slow process.
value | the value to determine the type for |
References org.exolab.castor.xml.schema.util.DatatypeHandler.BOOLEAN_TYPE, org.exolab.castor.xml.schema.util.DatatypeHandler.DATE_TYPE, org.exolab.castor.xml.schema.util.DatatypeHandler.DATETIME_TYPE, org.exolab.castor.xml.schema.util.DatatypeHandler.DOUBLE_TYPE, org.exolab.castor.xml.schema.util.DatatypeHandler.FLOAT_TYPE, org.exolab.castor.xml.schema.util.DatatypeHandler.INTEGER_TYPE, org.exolab.castor.xml.schema.util.DatatypeHandler.LONG_TYPE, org.exolab.castor.xml.schema.util.DatatypeHandler.STRING_TYPE, and org.exolab.castor.xml.schema.util.DatatypeHandler.TIME_TYPE.
static String org.exolab.castor.xml.schema.util.DatatypeHandler.whichType | ( | String | type1, | |
String | type2 | |||
) | [static, protected] |
Guesses which datatype should be used.
References org.exolab.castor.xml.schema.util.DatatypeHandler.DOUBLE_TYPE, org.exolab.castor.xml.schema.util.DatatypeHandler.FLOAT_TYPE, org.exolab.castor.xml.schema.util.DatatypeHandler.INTEGER_TYPE, org.exolab.castor.xml.schema.util.DatatypeHandler.LONG_TYPE, and org.exolab.castor.xml.schema.util.DatatypeHandler.STRING_TYPE.
final String org.exolab.castor.xml.schema.util.DatatypeHandler.BOOLEAN_TYPE = "boolean" [static] |
The name of the XML Schema boolean type
Referenced by org.exolab.castor.xml.schema.util.DatatypeHandler.guessType().
final String org.exolab.castor.xml.schema.util.DatatypeHandler.DATE_TYPE = "date" [static] |
The name of the XML Schema date type
Referenced by org.exolab.castor.xml.schema.util.DatatypeHandler.guessType().
final String org.exolab.castor.xml.schema.util.DatatypeHandler.DATETIME_TYPE = "dateTime" [static] |
The name of the XML Schema dateTime type
Referenced by org.exolab.castor.xml.schema.util.DatatypeHandler.guessType().
final String org.exolab.castor.xml.schema.util.DatatypeHandler.DOUBLE_TYPE = "double" [static] |
The name of the XML Schema double type
Referenced by org.exolab.castor.xml.schema.util.DatatypeHandler.guessType(), and org.exolab.castor.xml.schema.util.DatatypeHandler.whichType().
final String org.exolab.castor.xml.schema.util.DatatypeHandler.FLOAT_TYPE = "float" [static] |
The name of the XML Schema float type
Referenced by org.exolab.castor.xml.schema.util.DatatypeHandler.guessType(), and org.exolab.castor.xml.schema.util.DatatypeHandler.whichType().
final String org.exolab.castor.xml.schema.util.DatatypeHandler.INTEGER_TYPE = "integer" [static] |
The name of the XML Schema integer type
Referenced by org.exolab.castor.xml.schema.util.DatatypeHandler.guessType(), and org.exolab.castor.xml.schema.util.DatatypeHandler.whichType().
final String org.exolab.castor.xml.schema.util.DatatypeHandler.LONG_TYPE = "long" [static] |
The name of the XML Schema long type
Referenced by org.exolab.castor.xml.schema.util.DatatypeHandler.guessType(), and org.exolab.castor.xml.schema.util.DatatypeHandler.whichType().
final String org.exolab.castor.xml.schema.util.DatatypeHandler.STRING_TYPE = "string" [static] |
The name of the XML Schema string type
Referenced by org.exolab.castor.xml.schema.util.DatatypeHandler.guessType(), and org.exolab.castor.xml.schema.util.DatatypeHandler.whichType().
final String org.exolab.castor.xml.schema.util.DatatypeHandler.TIME_TYPE = "time" [static] |
The name of the XML Schema time type
Referenced by org.exolab.castor.xml.schema.util.DatatypeHandler.guessType().