|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.xml.schema.util.DatatypeHandler
public class DatatypeHandler
A class used for "guessing" the proper datatype of an XML attribute or an XML element with simpleContent.
| Field Summary | |
|---|---|
static String |
BOOLEAN_TYPE
The name of the XML Schema boolean type |
static String |
DATE_TYPE
The name of the XML Schema date type |
static String |
DATETIME_TYPE
The name of the XML Schema dateTime type |
static String |
DOUBLE_TYPE
The name of the XML Schema double type |
static String |
FLOAT_TYPE
The name of the XML Schema float type |
static String |
INTEGER_TYPE
The name of the XML Schema integer type |
static String |
LONG_TYPE
The name of the XML Schema long type |
static String |
STRING_TYPE
The name of the XML Schema string type |
static String |
TIME_TYPE
The name of the XML Schema time type |
| Method Summary | |
|---|---|
static String |
guessType(String value)
Guesses the datatype for the given value. |
protected static String |
whichType(String type1,
String type2)
Guesses which datatype should be used. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String BOOLEAN_TYPE
public static final String DATE_TYPE
public static final String DATETIME_TYPE
public static final String DOUBLE_TYPE
public static final String FLOAT_TYPE
public static final String INTEGER_TYPE
public static final String LONG_TYPE
public static final String STRING_TYPE
public static final String TIME_TYPE
| Method Detail |
|---|
public static String guessType(String value)
value - the value to determine the type for
protected static String whichType(String type1,
String type2)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||