|
3.2.4: 2013-12-06 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.util.fileset.SingleFileValidationAction
net.sf.basedb.util.affymetrix.CdfValidationAction
public class CdfValidationAction
Action for validation of CDF files in a file set. The
CDF file must be connected with an ArrayDesign
.
This class is just a wrapper for CdfValidator
so
that we can hook the validation into the extensions system.
Field Summary | |
---|---|
private DbControl |
dc
|
private ArrayDesign |
design
|
private CdfValidator |
validator
|
Constructor Summary | |
---|---|
CdfValidationAction(DbControl dc,
ArrayDesign design)
Create a new action. |
Method Summary | |
---|---|
void |
resetMetadata()
Reset all metadata that this class normally can set. |
void |
validateAndExtractMetadata()
Validate and extract metadata from the file(s) that has been added to this validator. |
Methods inherited from class net.sf.basedb.util.fileset.SingleFileValidationAction |
---|
acceptFile, getAcceptedFile |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final DbControl dc
private final ArrayDesign design
private final CdfValidator validator
Constructor Detail |
---|
public CdfValidationAction(DbControl dc, ArrayDesign design)
dc
- An open DbControldesign
- The array design the CDF file is connected withMethod Detail |
---|
public void validateAndExtractMetadata() throws InvalidDataException, InvalidRelationException
ValidationAction
ValidationAction.acceptFile(FileSetMember)
method
returns Accept.VALIDATE_IMMEDIATELY
this method is called
and the validator should work on the last accepted file.
This method is also called after all files has been processed if at
least one file returned Accept.VALIDATE_LATER
.
This method is recommended to throw an InvalidDataException
or a
subclass if the file is not a valid file. PermissionDeniedException
:s
are ignored by the core and will not change the validation status. An
exception of type InvalidRelationException
can be thrown if the
file itself is valid, but a related file that it depends on is not. The
core will still mark the file as invalid and store the error message,
but extracted metadata will not be reset.
InvalidDataException
- If the validator detects an invalid
file
InvalidRelationException
- If the validator detects that the
file is valid but another file that it depends on is not, metadata
extract will still happenpublic void resetMetadata()
ValidationAction
|
3.2.4: 2013-12-06 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |