Class FileClassification
java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.fileclassifier.FileClassification
FileClassification holds the classification information for a specific file
-
Constructor Summary
ConstructorDescriptionFileClassification
(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 Summary
Modifier and TypeMethodDescriptionReturn the asset type name.Return the time that the file was created.Return the deployed implementation type.Return the encoding of the file - may be nullReturn the file extension of the file.Return the short file name of the file.long
Return the size of the file in bytes.return the logical file type.Return the last time the file was accessed.Return the last time the file was modified.Return the full pathname of the file.boolean
Is the file executable?boolean
Is the file readable?boolean
Is the file writable?boolean
isHidden()
Return whether this is a hidden file.boolean
Return whether is file/directory is a symbolic link.
-
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
Return the short file name of the file.- Returns:
- string name
-
getPathName
Return the full pathname of the file.- Returns:
- string name
-
getFileExtension
Return the file extension of the file.- Returns:
- letters after the "dot"
-
getFileType
return the logical file type.- Returns:
- string name
-
getDeployedImplementationType
Return the deployed implementation type.- Returns:
- string name
-
getAssetTypeName
Return the asset type name.- Returns:
- string name
-
getEncoding
Return the encoding of the file - may be null- Returns:
- encoding standard
-
getCreationTime
Return the time that the file was created.- Returns:
- date/time
-
getLastModifiedTime
Return the last time the file was modified.- Returns:
- date/time
-
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
-