Class FileSpecification

java.lang.Object
com.sas.lsaf.content.common.FileSpecification
All Implemented Interfaces:
Serializable

public class FileSpecification extends Object implements 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 Details

    • FileSpecification

      public FileSpecification(String path)
      Constructor.
      Parameters:
      path - The path to the file or folder.
    • FileSpecification

      public FileSpecification(String path, String version)
      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

      public String getPath()
      Gets the path to the file or folder.
      Returns:
      The path to the file or folder.
    • setPath

      public void setPath(String path)
      Sets the path to the file or folder.
      Parameters:
      path - The path to the file or folder.
    • getVersion

      public String getVersion()
      Gets the version of the file. Null indicates the latest version.
      Returns:
      The version of the file.
    • setVersion

      public void setVersion(String version)
      Sets the version of the file. Null indicates the latest version.
      Parameters:
      version - The version of the file.
    • 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