public class DummyReporter extends Object implements Reporter
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.
Modifier and Type | Field and Description |
---|---|
static DummyReporter |
INSTANCE
Instance suitable for general use.
|
Modifier | Constructor and Description |
---|---|
protected |
DummyReporter()
Constructor.
|
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.
|
Reporter |
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.
|
Reporter |
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 |
report(String msg)
Reports an error message.
|
public static final DummyReporter INSTANCE
public void checkUcd(String ucd)
Reporter
public void checkUnit(String unit)
Reporter
public Reporter createReporter(int subContext)
Reporter
createReporter
in interface Reporter
subContext
- subcontext designationpublic Reporter createReporter(String subContext)
Reporter
createReporter
in interface Reporter
subContext
- subcontext designationCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.