Package eu.ha3.matmos.engine.debug

Source Code of eu.ha3.matmos.engine.debug.DumpData

package eu.ha3.matmos.engine.debug;

import eu.ha3.matmos.engine.core.interfaces.Data;
import eu.ha3.matmos.engine.core.interfaces.Sheet;

/*
--filenotes-placeholder
*/

public class DumpData
{
  public static String dumpData(Data data)
  {
    StringBuilder s = new StringBuilder();
    for (String sheetName : data.getSheetNames())
    {
      Sheet sheet = data.getSheet(sheetName);
     
      s.append(sheetName + "\n");
      for (String index : sheet.keySet())
      {
        s.append("  " + index + ":" + sheet.get(index) + "\n");
      }
    }
    return s.toString();
  }
}
TOP

Related Classes of eu.ha3.matmos.engine.debug.DumpData

TOP
Copyright © 2018 www.massapi.com. 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.