Examples of BasicData


Examples of org.cishell.framework.data.BasicData

        new ConverterGraphComputation(allConverterServices, logger);
     
      /*
       * Used to generate the output reference for graph containing the network.
       * */
      return prepareOutputMetadata(new BasicData(converterGraphComputation.getOutputGraph(),
                     Graph.class.getName()));
  }
View Full Code Here

Examples of org.cishell.framework.data.BasicData

    return getAlgorithmFactoryByFilter(filter, bundleContext);
  }
 
  public static Data[] cloneSingletonData(Data[] data) {
    return new Data[] {
      new BasicData(data[0].getMetadata(), data[0].getData(), data[0].getFormat())
    };
  }
View Full Code Here

Examples of org.cishell.framework.data.BasicData

      this.selectedConverter = viewDataChooser.getSelectedConverter();
    }
  }

  private static Data cloneDataWithCleanedLabelForConversion(Data originalData) {
    Data clonedData = new BasicData(originalData.getData(), originalData.getFormat());
    Dictionary<String, Object> originalMetadata = originalData.getMetadata();
    Dictionary<String, Object> clonedMetadata = clonedData.getMetadata();

    for (Enumeration<String> keys = originalMetadata.keys(); keys.hasMoreElements();) {
      String key = keys.nextElement();

      if (DataProperty.LABEL.equals(key)) {
View Full Code Here

Examples of org.cishell.framework.data.BasicData

      AlgorithmFactory validator,
      ProgressMonitor progressMonitor,
      CIShellContext ciShellContext,
      LogService logger) throws AlgorithmExecutionException {
    Data[] validationData =
      new Data[] { new BasicData(file.getPath(), String.class.getName()) };
    Algorithm algorithm = validator.createAlgorithm(
      validationData, new Hashtable<String, Object>(), ciShellContext);

    if ((progressMonitor != null) && (algorithm instanceof ProgressTrackable)) {
      ProgressTrackable progressTrackable = (ProgressTrackable)algorithm;
View Full Code Here

Examples of org.cishell.framework.data.BasicData

    Data Data = (Data) fileData[0];
    String format = Data.getFormat();
    File actualFile = (File) Data.getData();
    try {
      String filePath = actualFile.getCanonicalPath();
      Data result = new BasicData(filePath, format);
      return new Data[] { result };
    } catch (IOException e) {
      this.logger.log(LogService.LOG_ERROR, "Could not get file path " +
          "from file " + actualFile, e);
      return null;
View Full Code Here

Examples of org.cishell.framework.data.BasicData

                FileWriter fw = new FileWriter(file);
               
                fw.write(i.toString());
                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

Examples of org.cishell.framework.data.BasicData

   
    putIfValueNotNull(metadata, DataProperty.TYPE, type);
    putIfValueNotNull(metadata, DataProperty.PARENT, parent);
    putIfValueNotNull(metadata, DataProperty.LABEL, label);
   
    return new BasicData(metadata, object, format);
  }
View Full Code Here

Examples of org.cishell.framework.data.BasicData

        }
       
        Dictionary dict = new Hashtable();
        dict.put(DataProperty.LABEL, "Weee!!!");
       
        return new Data[] {new BasicData(dict, "Weee!!!", String.class.getName())};
    }
View Full Code Here

Examples of org.cishell.framework.data.BasicData

       
        if (properties == null) {
            properties = new Hashtable();
        }
       
        Data dm = new BasicData(properties, dataFile, format);
       
        return registerDataModel(dm);
    }
View Full Code Here

Examples of org.cishell.framework.data.BasicData

            }
              
            String outFormat =
              (String) getProperties().get(AlgorithmProperty.OUT_DATA);
           
            return new BasicData(newProperties, result, outFormat);
        } else {
            return null;
        }
    }
View Full Code Here
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.