Package com.sas.lsaf.execution.job
Class ManifestFileRef
- java.lang.Object
-
- com.sas.lsaf.execution.job.ManifestFileRef
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ManifestInput
,ManifestJob
,ManifestOutput
,ManifestProgram
,ManifestSystemFile
public abstract class ManifestFileRef extends java.lang.Object implements java.io.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ManifestFileRef(ManifestFile file)
It is not intended or recommended that the consumer of this API construct these objects.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
ManifestFile
getFile()
Gets the file object that represents a file tha tis referenced in a job submission.java.lang.String
getId()
Gets the unique identifier, if the manifest file is a repository file.java.util.Date
getLastModified()
Gets the date on which the file was last modified.java.lang.String
getName()
The name of the file that is referenced in a job submission.java.lang.String
getPath()
The path to the file that is referenced in a job submission.java.lang.String
getVersion()
Gets the version, if the manifest file is a repository that is versioned.int
hashCode()
boolean
isRepositoryFile()
Indicates whether the file is a repository file.boolean
isWorkspaceFile()
Indicates whether the file is a workspace file.java.lang.String
toString()
-
-
-
Constructor Detail
-
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 Detail
-
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 java.lang.String getPath()
The path to the file that is referenced in a job submission.- Returns:
- The path to the file.
-
getName
public java.lang.String getName()
The name of the file that is referenced in a job submission.- Returns:
- The name of the file.
-
getLastModified
public java.util.Date getLastModified()
Gets the date on which the file was last modified.- Returns:
- The date.
-
getId
public java.lang.String getId()
Gets the unique identifier, if the manifest file is a repository file. Otherwise, returns null.- Returns:
- The unique identifier.
-
getVersion
public java.lang.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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-