Package inspector.jqcml.model

Examples of inspector.jqcml.model.TableAttachment


    }
  }

  @Override
  public TableAttachment unmarshal(TableAttachmentString tas) throws Exception {
    TableAttachment ta = new TableAttachment();
   
    String[] header = tas.getTableHeader().split("\\s+");
    String[] body = tas.getTableBody();
   
    // create the columns
    for(String column : header)
      ta.addColumn(column);
   
    // add the values
    for(int row = 0; row < body.length; row++) {
      String[] rowArr = body[row].split("\\s+");
      for(int column = 0; column < rowArr.length; column++) {
        ta.addValue(header[column], row, rowArr[column]);
      }
    }

    return ta;
  }
View Full Code Here

TOP

Related Classes of inspector.jqcml.model.TableAttachment

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.