Row.java

  1. package org.docascode.ant.types.docx;

  2. import org.apache.tools.ant.types.DataType;

  3. public class Row extends DataType {
  4.     private org.docascode.api.core.office.table.Row coreRow = new org.docascode.api.core.office.table.Row();

  5.     public void add(Cell cell){
  6.         this.coreRow.add(cell.toCore());
  7.     }

  8.     public void add(ParagraphFormat paragraphFormat){
  9.         this.coreRow.setParagraphFormat(paragraphFormat.toCore());
  10.     }

  11.     org.docascode.api.core.office.table.Row toCore(){
  12.         return this.coreRow;
  13.     }
  14. }