Package org.cishell.framework.data

Examples of org.cishell.framework.data.Data


                FileWriter fw = new FileWriter(file);
               
                fw.write(string);
                fw.close();
               
                Data dm = new BasicData(file, "file:text/plain");
                dm.getMetadata().put(DataProperty.LABEL, "File of "+label);
               
                return new Data[]{dm};
            } catch (IOException e) {
                throw new AlgorithmExecutionException(e);
            }
View Full Code Here


                    while (string != null) {
                        outString += string;
                        string = reader.readLine();
                    }
                   
                    Data dm = new BasicData(new Integer(outString.trim()), Integer.class.getName());
                    dm.getMetadata().put(DataProperty.LABEL, "Integer for "+label);
                   
                    return new Data[]{dm};
                } else {
                  throw new AlgorithmExecutionException("File does not exist!");
                }
View Full Code Here

  public void generateSubreport(TestResult tr, FilePassResult fpr, Data[] convertedData) {
    if (convertedData.length == 0) {
      return;
    }

      Data firstData = convertedData[0];
      Object fileData = firstData.getData();
      if (fileData != null && fileData instanceof File) {
        this.convertedDataReport =
          new ConvertedDataReport((File) fileData,(String) firstData.getMetadata().get(DataProperty.LABEL) +
              " for " + fpr.getName() + " of " + tr.getName());
      } else {
        this.convertedDataReport =
          new ConvertedDataReport((String) firstData.getMetadata().get(DataProperty.LABEL)
              " for " + fpr.getName() + " of " +  tr.getName());
      }
  }
View Full Code Here

            this.data = new Data[inData.length];
            this.converters = new Converter[inData.length][];
           
            for (int ii = 0; ii < inData.length; ii++) {
                for (int jj = 0; jj < dataSet.size(); jj++) {
                    Data datum = (Data) dataSet.get(jj);
                   
                    if (datum != null) {
                        if (isAssignableFrom(inData[ii], datum)) {
                            dataSet.remove(jj);
                            this.data[ii] = datum;
View Full Code Here

TOP

Related Classes of org.cishell.framework.data.Data

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.