Class ManifestFile

java.lang.Object
com.sas.lsaf.execution.job.ManifestFile
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ManifestRepositoryFile, ManifestWorkspaceFile

public abstract class ManifestFile extends Object implements Serializable
The client representation of a file in a job manifest file.
See Also:
  • Constructor Details

    • ManifestFile

      public ManifestFile(String path, String name, Date lastModified, Long size)
      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:
      path - The full path to the manifest file, which includes the name.
      name - The name of the manifest file.
      lastModified - The date on which the file was last modified.
      size - The size (in bytes) of the file.
  • Method Details

    • getPath

      public String getPath()
      Gets the full path to the manifest file, which includes the name.
      Returns:
      The full path.
    • getName

      public String getName()
      Gets the name of the manifest file.
      Returns:
      The name.
    • getSize

      public Long getSize()
      Gets the size (in bytes) of the manifest file at the time the manifest file was created.
      Returns:
      The size (in bytes).
    • getLastModified

      public Date getLastModified()
      Gets the date on which the file was last modified.
      Returns:
      The date.
    • 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.
    • getId

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

      public String getVersion()
      Gets the version, if the manifest file is a repository that is versioned. Otherwise, returns null.
      Returns:
      The version, if the manifest file is a repository that is versioned. Otherwise, null.
    • 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