mondrian.xmla
Class XmlaHandler.ValueInfo
java.lang.Object
mondrian.xmla.XmlaHandler.ValueInfo
- Enclosing class:
- XmlaHandler
static class XmlaHandler.ValueInfo
- extends java.lang.Object
Takes a DataType String (null, Integer, Numeric or non-null)
and Value Object (Integer, Double, String, other) and
canonicalizes them to XSD data type and corresponding object.
If the input DataType is Integer, then it attempts to return
an XSD_INT with value java.lang.Integer (and failing that an
XSD_LONG (java.lang.Long) or XSD_INTEGER (java.math.BigInteger)).
Worst case is the value loses precision with any integral
representation and must be returned as a decimal type (Double
or java.math.BigDecimal).
If the input DataType is Decimal, then it attempts to return
an XSD_DOUBLE with value java.lang.Double (and failing that an
XSD_DECIMAL (java.math.BigDecimal)).
Field Summary |
(package private) boolean |
isDecimal
|
(package private) java.lang.Object |
value
|
(package private) java.lang.String |
valueType
|
Method Summary |
(package private) static java.lang.String |
getValueTypeHint(java.lang.String dataType)
Returns XSD_INT, XSD_DOUBLE, XSD_STRING or null. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
valueType
java.lang.String valueType
value
java.lang.Object value
isDecimal
boolean isDecimal
XmlaHandler.ValueInfo
XmlaHandler.ValueInfo(java.lang.String dataType,
java.lang.Object inputValue)
getValueTypeHint
static java.lang.String getValueTypeHint(java.lang.String dataType)
- Returns XSD_INT, XSD_DOUBLE, XSD_STRING or null.
- Parameters:
dataType
- null, Integer, Numeric or non-null.
- Returns:
- Returns the suggested XSD type for a given datatype