public abstract class SingleFileValidationAction extends Object implements ValidationAction
Modifier and Type | Field and Description |
---|---|
private FileSetMember |
acceptedFile |
private String |
fileTypeId |
Modifier | Constructor and Description |
---|---|
protected |
SingleFileValidationAction(String fileTypeId)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
Accept |
acceptFile(FileSetMember member)
If the file has a file type matching the id given in the constructor
it is accepted for immediate validation.
|
protected FileSetMember |
getAcceptedFile()
Get the file that was last accepted by the
acceptFile(FileSetMember)
method. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
resetMetadata, validateAndExtractMetadata
private final String fileTypeId
private FileSetMember acceptedFile
protected SingleFileValidationAction(String fileTypeId)
fileTypeId
- The external if of the DataFileType
that this validator supportspublic Accept acceptFile(FileSetMember member)
acceptFile
in interface ValidationAction
member
- A member of the current file setAccept.VALIDATE_IMMEDIATELY
or nullprotected FileSetMember getAcceptedFile()
acceptFile(FileSetMember)
method.