protected void internalPrettify(Object o) { if (o == null) { trace.writeNull(); } else if (o instanceof String) { String string = (String)o; if (string.startsWith("<?xml")) { trace.write(StringUtils.prettifyXML(string)); } else { trace.write(string); } } else if (o instanceof Number || o instanceof Boolean || o instanceof Date || o instanceof Calendar || o instanceof Character) { trace.write(o); } else { prettifyComplexType(o); } }
protected void internalPrettify(Object o) { if (o == null) { trace.writeNull(); } else if (o instanceof String) { String string = (String)o; if (string.startsWith("<?xml")) { trace.write(StringUtils.prettifyXML(string)); } else { trace.write(string); } } else if (o instanceof Number || o instanceof Boolean || o instanceof Date || o instanceof Calendar || o instanceof Character) { trace.write(o); } else { prettifyComplexType(o); } }
protected void internalPrettify(Object o) { if (o == null) { trace.writeNull(); } else if (o instanceof String) { String string = (String)o; if (string.startsWith("<?xml")) { trace.write(StringUtils.prettifyXML(string)); } else { trace.write(string); } } else if (o instanceof Number || o instanceof Boolean || o instanceof Date || o instanceof Calendar || o instanceof Character) { trace.write(o); } else { prettifyComplexType(o); } }