예제 #1
0
 @Override
 public void toTestDocument(OutputStream out) throws InvalidTemplateException, IOException {
   TemplateContext<E> context = contextFactory.createTemplateContext(this);
   prepareDocument();
   document.updateDynamicContent(context);
   document.writeAsOpenXML(out);
 }
예제 #2
0
 @Override
 public void toDocument(E data, OutputStream out) throws IOException, InvalidTemplateException {
   prepareDocument();
   TemplateContext<E> context = contextFactory.createTemplateContext(this);
   context.bind(data);
   document.updateDynamicContent(context);
   document.writeAsOpenXML(out);
 }
예제 #3
0
 @Override
 public void validate() throws InvalidTemplateException {
   prepareDocument();
   document.validate(contextFactory.createTemplateContext(this));
 }
예제 #4
0
 @Override
 public List<String> listContentIds() {
   prepareDocument();
   return document.listContentIds();
 }