includes/org/jopendocument/dom/ODValueType.java
public static ODValueType forObject(Object o) {
        if (o instanceof Number)
            return FLOAT;
        else if (o instanceof Boolean)
            return BOOLEAN;
        else if (o instanceof String)
            return STRING;
        else if (o instanceof Calendar && !((Calendar) o).isSet(Calendar.DATE))
            return TIME;
        else if (DATE.canFormat(o.getClass()))
            return DATE;
        else
            return null;
    }
/**
     * Try to guess the value type for the passed object.
     * 
     * @param o the object.
     * @return a value type capable of formatting <code>o</code> or <code>null</code>.
     */
Try to guess the value type for the passed object.

@param o the object.
@return a value type capable of formatting o or null.
Try to guess the value type for the passed object . @param o the object . @return a value type capable of formatting o or null .
public static ODValueType forObject(Object o) {
        if (o instanceof Number)
            return FLOAT;
        else if (o instanceof Boolean)
            return BOOLEAN;
        else if (o instanceof String)
            return STRING;
        else if (o instanceof Calendar && !((Calendar) o).isSet(Calendar.DATE))
            return TIME;
        else if (DATE.canFormat(o.getClass()))
            return DATE;
        else
            return null;
    }
public static ODValueType forObject ( Object o ) { if ( o instanceof Number ) return FLOAT ; else if ( o instanceof Boolean ) return BOOLEAN ; else if ( o instanceof String ) return STRING ; else if ( o instanceof Calendar && ! ( ( Calendar ) o ) . isSet ( Calendar . DATE ) ) return TIME ; else if ( DATE . canFormat ( o . getClass ( ) ) ) return DATE ; else return null ; }
Try to guess the value type for the passed object.
Try to guess the value type for the passed object .