java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.fileclassifier.FileClassification

public class FileClassification extends Object
FileClassification holds the classification information for a specific file
  • Constructor Details

    • FileClassification

      public FileClassification(String fileName, String pathName, String fileExtension, Date creationTime, Date lastModifiedTime, Date lastAccessedTime, boolean canRead, boolean canWrite, boolean canExecute, boolean isHidden, boolean isSymLink, String fileType, String deployedImplementationType, String encoding, String assetTypeName, long fileSize)
  • Method Details

    • getFileName

      public String getFileName()
      Return the short file name of the file.
      Returns:
      string name
    • getPathName

      public String getPathName()
      Return the full pathname of the file.
      Returns:
      string name
    • getFileExtension

      public String getFileExtension()
      Return the file extension of the file.
      Returns:
      letters after the "dot"
    • getFileType

      public String getFileType()
      return the logical file type.
      Returns:
      string name
    • getDeployedImplementationType

      public String getDeployedImplementationType()
      Return the deployed implementation type.
      Returns:
      string name
    • getAssetTypeName

      public String getAssetTypeName()
      Return the asset type name.
      Returns:
      string name
    • getEncoding

      public String getEncoding()
      Return the encoding of the file - may be null
      Returns:
      encoding standard
    • getCreationTime

      public Date getCreationTime()
      Return the time that the file was created.
      Returns:
      date/time
    • getLastModifiedTime

      public Date getLastModifiedTime()
      Return the last time the file was modified.
      Returns:
      date/time
    • getLastAccessedTime

      public Date getLastAccessedTime()
      Return the last time the file was accessed.
      Returns:
      date/time
    • isCanRead

      public boolean isCanRead()
      Is the file readable?
      Returns:
      boolean
    • isCanWrite

      public boolean isCanWrite()
      Is the file writable?
      Returns:
      boolean
    • isCanExecute

      public boolean isCanExecute()
      Is the file executable?
      Returns:
      boolean
    • isHidden

      public boolean isHidden()
      Return whether this is a hidden file.
      Returns:
      boolean
    • isSymLink

      public boolean isSymLink()
      Return whether is file/directory is a symbolic link.
      Returns:
      boolean
    • getFileSize

      public long getFileSize()
      Return the size of the file in bytes.
      Returns:
      long