public class ValidatingFileSetMember
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
hasBeenAccepted |
private boolean |
isValidSoFar |
private FileSetMember |
member |
private java.lang.String |
message |
Constructor and Description |
---|
ValidatingFileSetMember(FileSetMember member)
Create a new instance for the given real member file.
|
Modifier and Type | Method and Description |
---|---|
FileSetMember |
getMember()
Get the file set member that this proxy represents.
|
java.lang.String |
getMessage()
Get the error message if the file failed validation.
|
boolean |
hasBeenAccepted()
Has this member been accepted for validation by at
least one validator?
|
Accept |
isAcceptedByValidator(ValidationAction action)
Check if the member is accepted by the given validator.
|
boolean |
isValidSoFar()
Is the member considered valid so far in the validation process?
|
void |
setResult(boolean isValid,
java.lang.String message)
Set the result of the validation for this file.
|
private final FileSetMember member
private boolean hasBeenAccepted
private boolean isValidSoFar
private java.lang.String message
public ValidatingFileSetMember(FileSetMember member)
public FileSetMember getMember()
public boolean hasBeenAccepted()
public boolean isValidSoFar()
public java.lang.String getMessage()
public Accept isAcceptedByValidator(ValidationAction action)
action
- The next validation actionAccept
value or null if the file
wasn't acceptedpublic void setResult(boolean isValid, java.lang.String message)
isValid
- TRUE if the file passed validationmessage
- A message about the validation