Package com.thoughtworks.xstream.io.xml

Examples of com.thoughtworks.xstream.io.xml.JDomWriter


    }
  }

  Element toXml(AbstractReportTable table){
    XStream          xs = ReportTableFactory.initXStream();
    JDomWriter        writer = new JDomWriter();
    xs.marshal(table, writer);
    Element      target = (Element) writer.getTopLevelNodes().get(0);
    target = Converter.asXStreamSubElement( target, REPORT_TABLE_ELEMENT_NAME, table.getClass());
    target.setAttribute(ATTRIBUTE_NAME_ID, String.valueOf(table.getType().getId()));
    return target;
  }
View Full Code Here

TOP

Related Classes of com.thoughtworks.xstream.io.xml.JDomWriter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.