Package uk.ac.starlink.tfcat
Class DummyReporter
java.lang.Object
uk.ac.starlink.tfcat.DummyReporter
- All Implemented Interfaces:
Reporter
Reporter that discards all messages.
Since there is no internal state, in general
the INSTANCE can be used,
but a protected constructor is available in case you want to subclass it.
- Since:
- 9 Feb 2022
- Author:
- Mark Taylor
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.voidReports an error message.
-
Field Details
-
INSTANCE
Instance suitable for general use.
-
-
Constructor Details
-
DummyReporter
protected DummyReporter()Constructor.
-
-
Method Details
-
checkUcd
Description copied from interface:ReporterReport on validity of the supplied Uniform Content Descriptor. Any issues of concern will be reported. -
checkUnit
Description copied from interface:ReporterReport on validity of the supplied unit string. Any issues of concern will be reported. -
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
-
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
-
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.
-