/** * Dumps any bean into its XML string representation; will never * throw any error (will return the error message as a string instead). */ public static String dumpToString (final Object bean) { try { return encodeToString(bean, null); } catch (final Throwable t) { return ">failed to dumpToString : "+t+"<"; } }
/** * Returns an XML string representation of this header. */ public String toString () { try { return openwfe.org.util.beancoder.XmlBeanCoder .encodeToString(this, null); // // setting the encoding to 'null' means : // use the default encoding (as set in the start scripts) } catch (final Exception e) { return "Failed to encode header because of "+e; } }
/** * log.debug() an XML string representation of the expression. */ public void xmlDebugDump (final String methodName) { if ( ! log.isDebugEnabled()) return; try { log.debug (methodName+"()\n"+ openwfe.org.util.beancoder.XmlBeanCoder .encodeToString(this, null)); } catch (final Throwable t) { log.debug (methodName+"() failure in xmlDebugDump()", t); } }