Package com.sas.lsaf.content.common
Class FileSpecification
java.lang.Object
com.sas.lsaf.content.common.FileSpecification
- All Implemented Interfaces:
Serializable
The class that represents the specification of a file or a folder. For a file, version can be specified. The default
version is null which represents the latest version.
- Since:
- 2.4
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFileSpecification(String path) Constructor.FileSpecification(String path, String version) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetPath()Gets the path to the file or folder.Gets the version of the file.inthashCode()voidSets the path to the file or folder.voidsetVersion(String version) Sets the version of the file.toString()
-
Constructor Details
-
FileSpecification
Constructor.- Parameters:
path- The path to the file or folder.
-
FileSpecification
Constructor.- Parameters:
path- The path to the file or folder.version- The version of the file. Specifying null indicates the latest version.
-
-
Method Details
-
getPath
Gets the path to the file or folder.- Returns:
- The path to the file or folder.
-
setPath
Sets the path to the file or folder.- Parameters:
path- The path to the file or folder.
-
getVersion
Gets the version of the file. Null indicates the latest version.- Returns:
- The version of the file.
-
setVersion
Sets the version of the file. Null indicates the latest version.- Parameters:
version- The version of the file.
-
hashCode
public int hashCode() -
equals
-
toString
-