Class ManifestFileRef

java.lang.Object
com.sas.lsaf.execution.job.ManifestFileRef
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ManifestInput, ManifestJob, ManifestOutput, ManifestProgram, ManifestSystemFile

public abstract class ManifestFileRef extends Object implements Serializable
Abstract base class for the files that are in a manifest file that exist in the current user's workspace or repository.
Since:
2.4
See Also:
  • Constructor Details

    • ManifestFileRef

      public ManifestFileRef(ManifestFile file)
      It is not intended or recommended that the consumer of this API construct these objects. They should only deal with the manifest files that are returned by the API.
      Parameters:
      file - The file object that represents an output file the job submission.
  • Method Details

    • getFile

      public ManifestFile getFile()
      Gets the file object that represents a file tha tis referenced in a job submission.
      Returns:
      The file object.
    • getPath

      public String getPath()
      The path to the file that is referenced in a job submission.
      Returns:
      The path to the file.
    • getName

      public String getName()
      The name of the file that is referenced in a job submission.
      Returns:
      The name of the file.
    • getLastModified

      public Date getLastModified()
      Gets the date on which the file was last modified.
      Returns:
      The date.
    • getId

      public String getId()
      Gets the unique identifier, if the manifest file is a repository file. Otherwise, returns null.
      Returns:
      The unique identifier.
    • getVersion

      public String getVersion()
      Gets the version, if the manifest file is a repository that is versioned. Otherwise, returns null.
      Returns:
      The version.
    • isRepositoryFile

      public boolean isRepositoryFile()
      Indicates whether the file is a repository file.
      Returns:
      True, if the file is a repository file, False otherwise.
    • isWorkspaceFile

      public boolean isWorkspaceFile()
      Indicates whether the file is a workspace file.
      Returns:
      True if the file is a workspace file, False otherwise.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object