use of org.whole.lang.templates.ITemplate in project whole by wholeplatform.
the class AbstractXsiPersistenceKit method doWriteModel.
@Override
protected void doWriteModel(IEntity model, IPersistenceProvider pp) throws Exception {
PrintWriter printWriter = new PrintWriter(new OutputStreamWriter(pp.getOutputStream(), pp.getEncoding()));
XmlPrettyPrinterBuilderOperation op = new XmlPrettyPrinterBuilderOperation(printWriter);
ITemplate template = getXsiModelTemplate(model, pp.getEncoding());
template.apply(op);
printWriter.flush();
}
Aggregations