Package com.sas.lsaf.execution.job
Class ManifestFile
java.lang.Object
com.sas.lsaf.execution.job.ManifestFile
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ManifestRepositoryFile,ManifestWorkspaceFile
The client representation of a file in a job manifest file.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionManifestFile(String path, String name, Date lastModified, Long size) It is not intended or recommended that the consumer of this API construct these objects. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()Gets the unique identifier, if the manifest file is a repository file.Gets the date on which the file was last modified.getName()Gets the name of the manifest file.getPath()Gets the full path to the manifest file, which includes the name.getSize()Gets the size (in bytes) of the manifest file at the time the manifest file was created.Gets the version, if the manifest file is a repository that is versioned.inthashCode()booleanIndicates whether the file is a repository file.booleanIndicates whether the file is a workspace file.toString()
-
Constructor Details
-
ManifestFile
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
Gets the full path to the manifest file, which includes the name.- Returns:
- The full path.
-
getName
Gets the name of the manifest file.- Returns:
- The name.
-
getSize
Gets the size (in bytes) of the manifest file at the time the manifest file was created.- Returns:
- The size (in bytes).
-
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,Falseotherwise.
-
isWorkspaceFile
public boolean isWorkspaceFile()Indicates whether the file is a workspace file.- Returns:
Trueif the file is a workspace file,Falseotherwise.
-
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
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() -
equals
-
toString
-