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 TypeMethodDescriptionvoid
Report on validity of the supplied Uniform Content Descriptor.void
Report 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.void
Reports an error message.
-
Field Details
-
INSTANCE
Instance suitable for general use.
-
-
Constructor Details
-
DummyReporter
protected DummyReporter()Constructor.
-
-
Method Details
-
checkUcd
Description copied from interface:Reporter
Report on validity of the supplied Uniform Content Descriptor. Any issues of concern will be reported. -
checkUnit
Description copied from interface:Reporter
Report on validity of the supplied unit string. Any issues of concern will be reported. -
createReporter
Description copied from interface:Reporter
Returns 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:
createReporter
in interfaceReporter
- Parameters:
subContext
- subcontext designation- Returns:
- new reporter
-
createReporter
Description copied from interface:Reporter
Returns a reporter suitable for use in a subcontext characterised by a string, that usually means a level down in the object hierarchy.- Specified by:
createReporter
in interfaceReporter
- Parameters:
subContext
- subcontext designation- Returns:
- new reporter
-
report
Description copied from interface:Reporter
Reports an error message. The message should generally contain human-readable information about some conformance error, but the location of the error is not required.
-