Package com.shaft.validation.internal
Class FileValidationsBuilder
java.lang.Object
com.shaft.validation.internal.FileValidationsBuilder
-
Constructor Summary
ConstructorDescriptionFileValidationsBuilder
(ValidationEnums.ValidationCategory validationCategory, String folderRelativePath, String fileName, StringBuilder reportMessageBuilder) -
Method Summary
Modifier and TypeMethodDescriptionchecksum()
Use this to calculate and check a certain file checksum to confirm if it has the exact same content or notcontent()
Use this to attempt to read and validate a certain file content (works for PDF and TEXT files)Use this to check if a certain file does not existexists()
Use this to check if a certain file exists
-
Constructor Details
-
FileValidationsBuilder
public FileValidationsBuilder(ValidationEnums.ValidationCategory validationCategory, String folderRelativePath, String fileName, StringBuilder reportMessageBuilder)
-
-
Method Details
-
exists
Use this to check if a certain file exists- Returns:
- a ValidationsExecutor object to set your custom validation message (if needed) and then perform() your validation
-
doesNotExist
Use this to check if a certain file does not exist- Returns:
- a ValidationsExecutor object to set your custom validation message (if needed) and then perform() your validation
-
checksum
Use this to calculate and check a certain file checksum to confirm if it has the exact same content or not- Returns:
- a NativeValidationsBuilder object to continue building your validation
-
content
Use this to attempt to read and validate a certain file content (works for PDF and TEXT files)- Returns:
- a NativeValidationsBuilder object to continue building your validation
-