Constructor and Description |
---|
BasicReporter(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.
|
Modifier and Type | Method and Description |
---|---|
void |
checkUcd(String ucd)
Report on validity of the supplied Uniform Content Descriptor.
|
void |
checkUnit(String unit)
Report on validity of the supplied unit string.
|
BasicReporter |
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.
|
BasicReporter |
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.
|
List<String> |
getMessages()
Returns a list of all the messages accumulated by this reporter
and its sub-reporters.
|
void |
report(String message)
Reports an error message.
|
public BasicReporter(boolean isDebug)
isDebug
- if true, reports will be trigger a stack trace
on standard errorpublic BasicReporter(boolean isDebug, WordChecker ucdChecker, WordChecker unitChecker)
isDebug
- if true, reports will be trigger a stack trace
on standard errorucdChecker
- checks UCD stringsunitChecker
- checks unit stringspublic List<String> getMessages()
public BasicReporter createReporter(String subContext)
Reporter
createReporter
in interface Reporter
subContext
- subcontext designationpublic BasicReporter createReporter(int subContext)
Reporter
createReporter
in interface Reporter
subContext
- subcontext designationpublic void report(String message)
Reporter
public void checkUcd(String ucd)
Reporter
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.