|
3.1.2: 2012-07-31 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.util.fileset.ValidatingFileSetMember
public class ValidatingFileSetMember
This class is a proxy used for holding information about a file set member that is currently undergoing validation.
Field Summary | |
---|---|
private boolean |
hasBeenAccepted
|
private boolean |
isValidSoFar
|
private FileSetMember |
member
|
private String |
message
|
Constructor Summary | |
---|---|
ValidatingFileSetMember(FileSetMember member)
Create a new instance for the given real member file. |
Method Summary | |
---|---|
FileSetMember |
getMember()
Get the file set member that this proxy represents. |
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,
String message)
Set the result of the validation for this file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final FileSetMember member
private boolean hasBeenAccepted
private boolean isValidSoFar
private String message
Constructor Detail |
---|
public ValidatingFileSetMember(FileSetMember member)
Method Detail |
---|
public FileSetMember getMember()
public boolean hasBeenAccepted()
public boolean isValidSoFar()
public String getMessage()
public Accept isAcceptedByValidator(ValidationAction action)
action
- The next validation action
Accept
value or null if the file
wasn't acceptedpublic void setResult(boolean isValid, String message)
isValid
- TRUE if the file passed validationmessage
- A message about the validation
|
3.1.2: 2012-07-31 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |