Class BasicReporter
java.lang.Object
uk.ac.starlink.tfcat.BasicReporter
- All Implemented Interfaces:
Reporter
-
Constructor Summary
ConstructorsConstructorDescriptionBasicReporter(boolean isDebug) Constructs a BasicReporter with no UCD or VOUnit validation.BasicReporter(boolean isDebug, WordChecker ucdChecker, WordChecker unitChecker) Constructs a BasicReporter with configurable UCD and VOUnit validation. -
Method Summary
Modifier and TypeMethodDescriptionvoidReport on validity of the supplied Uniform Content Descriptor.voidReport on validity of the supplied unit string.createReporter(int subContext) Returns a reporter suitable for use in a subcontext characterised by an integer, that usually means an indexed array element below the current level.createReporter(String subContext) Returns a reporter suitable for use in a subcontext characterised by a string, that usually means a level down in the object hierarchy.Returns a list of all the messages accumulated by this reporter and its sub-reporters.voidReports an error message.
-
Constructor Details
-
BasicReporter
public BasicReporter(boolean isDebug) Constructs a BasicReporter with no UCD or VOUnit validation.- Parameters:
isDebug- if true, reports will be trigger a stack trace on standard error
-
BasicReporter
Constructs a BasicReporter with configurable UCD and VOUnit validation.- Parameters:
isDebug- if true, reports will be trigger a stack trace on standard errorucdChecker- checks UCD stringsunitChecker- checks unit strings
-
-
Method Details
-
getMessages
-
createReporter
Description copied from interface:ReporterReturns a reporter suitable for use in a subcontext characterised by a string, that usually means a level down in the object hierarchy.- Specified by:
createReporterin interfaceReporter- Parameters:
subContext- subcontext designation- Returns:
- new reporter
-
createReporter
Description copied from interface:ReporterReturns a reporter suitable for use in a subcontext characterised by an integer, that usually means an indexed array element below the current level.- Specified by:
createReporterin interfaceReporter- Parameters:
subContext- subcontext designation- Returns:
- new reporter
-
report
Description copied from interface:ReporterReports an error message. The message should generally contain human-readable information about some conformance error, but the location of the error is not required. -
checkUcd
-
checkUnit
-