public static void writeBean(Object obj, BeanWriter out) throws IOException, java.beans.IntrospectionException { writeBean(obj, out, new HashMap()); }
/** * This method is similar to writeBeanProperty except that the * outer property name is not known and not printed. */ public static void writeBean(Object obj, Writer out) throws IOException, java.beans.IntrospectionException { BeanWriter beanOut = new XmlBeanWriter(out); writeBean(obj, beanOut); }
public static void writeBeanProperty(Object obj, BeanWriter out, Map skipChildren, String propertyName) throws IOException, java.beans.IntrospectionException { if (obj == null) return; out.beginPropertyName(propertyName); if (!isJavaBeanType(obj.getClass())) { // leaf out.writeLeafObject(obj); } else { // inner node out.beginInnerNode(); writeBean(obj, out, skipChildren); out.endInnerNode(); } out.endPropertyName(propertyName); }