Package uk.ac.starlink.tfcat
Interface Reporter
- All Known Implementing Classes:
BasicReporter,DummyReporter
public interface Reporter
Recipient for validation messages.
- Since:
- 9 Feb 2022
- Author:
- Mark Taylor
-
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.
-
Method Details
-
report
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.- Parameters:
msg- human-readable message
-
checkUcd
Report on validity of the supplied Uniform Content Descriptor. Any issues of concern will be reported.- Parameters:
ucd- UCD- See Also:
-
checkUnit
Report on validity of the supplied unit string. Any issues of concern will be reported.- Parameters:
unit- unit string- See Also:
-
createReporter
Returns a reporter suitable for use in a subcontext characterised by a string, that usually means a level down in the object hierarchy.- Parameters:
subContext- subcontext designation- Returns:
- new reporter
-
createReporter
Returns a reporter suitable for use in a subcontext characterised by an integer, that usually means an indexed array element below the current level.- Parameters:
subContext- subcontext designation- Returns:
- new reporter
-