Class Data


public class Data extends ExpObject
Represents a data file that may be used in a run. In order to successfully look up a data file when saving a run, the server checks for the id, pipelinePath, dataFileURL, and pipelinePath properties (in that order) to try to resolve the file reference. At least one must be specified.
  • Constructor Details

    • Data

      public Data()
    • Data

      public Data(org.json.JSONObject json)
  • Method Details

    • toJSONObject

      public org.json.JSONObject toJSONObject()
      Overrides:
      toJSONObject in class ExpObject
    • getDataFileURL

      public String getDataFileURL()
      Returns:
      the URL to the data file from the web server's perspective
    • setDataFileURL

      public void setDataFileURL(String dataFileURL)
      Parameters:
      dataFileURL - the URL to the data file from the web server's perspective
    • getAbsolutePath

      public String getAbsolutePath()
      Returns:
      the full path to the file from the web server's file system perspective
    • setAbsolutePath

      public void setAbsolutePath(String absolutePath)
      Parameters:
      absolutePath - the full path to the file from the web server's file system perspective
    • getPipelinePath

      public String getPipelinePath()
      Returns:
      the path to the file on the file system, relative to the folder's pipeline root
    • setPipelinePath

      public void setPipelinePath(String pipelinePath)
      Parameters:
      pipelinePath - the path to the file on the file system, relative to the folder's pipeline root