public String getParseableString ( ) { // TODO expand this switch ( this . getType ( ) ) { case VT_I1 : case VT_I2 : case VT_I4 : case VT_INT : return Integer . toString ( this . intValue ( ) ) ; case VT_I8 : return Long . toString ( this . longValue ( ) ) ; case VT_R4 : return Float . toString ( this . floatValue ( ) ) ; case VT_R8 : return Double . toString ( this . doubleValue ( ) ) ; case VT_BSTR : return this . stringValue ( ) ; case VT_NULL : return "null" ; case VT_BOOL : return Boolean . toString ( this . booleanValue ( ) ) ; case VT_ERROR : return Integer . toHexString ( this . getError ( ) ) ; } System . err . println ( "Don't know how to print " + this . getType ( ) . name ( ) + " as an Java literal" ) ; return null ; }
Generates an String representation of this Variant that can be parsed .