|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.vtool.validate.ValidationRecord
public class ValidationRecord
Class that can be used to save the results of a validation run.
Field Summary |
---|
Fields inherited from interface gov.nasa.pds.tools.label.validate.Status |
---|
FAIL, PASS, SKIP, UNKNOWN |
Constructor Summary | |
---|---|
ValidationRecord()
Constructor |
|
ValidationRecord(java.lang.String status,
int warns,
int errors)
Constructor |
Method Summary | |
---|---|
void |
add(java.lang.String status,
int warns,
int errors)
Record the results of a label validation. |
void |
add(ValidationRecord record)
Record the results of a label validation. |
int |
getFilesFailed()
|
int |
getFilesPassed()
|
int |
getFilesSkipped()
|
int |
getTotalErrors()
|
int |
getTotalWarnings()
|
boolean |
hasErrors()
Determines if any errors are present in the record. |
boolean |
hasWarnings()
Determines if any warnings are present in the record. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidationRecord()
public ValidationRecord(java.lang.String status, int warns, int errors) throws UnknownLabelStatusException
status
- Indicates the success or failure of a validation.warns
- Number of warnings encountered during validation.errors
- Number of errors encountered during validation.
UnknownLabelStatusException
Method Detail |
---|
public void add(ValidationRecord record)
record
- A validationRecord object.public void add(java.lang.String status, int warns, int errors) throws UnknownLabelStatusException
status
- Indicates the success or failure of a validation. Argument
must be 'PASS', 'FAIL', or 'SKIP'.warns
- The number of warnings encountered during validation.errors
- The number of errors encountered during validation.
UnknownLabelStatusException
public boolean hasWarnings()
public int getTotalWarnings()
public boolean hasErrors()
public int getTotalErrors()
public int getFilesPassed()
public int getFilesSkipped()
public int getFilesFailed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |