public interface GlobalWarningSource
| Modifier and Type | Method and Description |
|---|---|
void |
clearGlobalWarning()
Clears any currently set warning (if permitted) for this source, and zeros
the sources suppression count.
|
java.lang.String |
getGlobalWarning()
Returns the current warning associated with this warning source.
|
void |
setGlobalWarning(java.lang.String warning)
Sets the current warning associated with this warning source, if permitted to do so
by the source.
|
void |
suppressGlobalWarning(boolean suppress)
Suppress or desupress the contributions of warnings by this source.
|
java.lang.String getGlobalWarning()
void suppressGlobalWarning(boolean suppress)
getGlobalWarning() will always return an empty string. Internally,
a supression count is maintained which is incremented if 'suppress' is true and decremented
if it is false. The initial value of the count is zero; suppression is in effect if the
count is greater than zero.suppress - whether to suppress or desupress warnings associated with this sourceclearGlobalWarning()void setGlobalWarning(java.lang.String warning)
warning - the warning to be associated with this sourcesclearGlobalWarning()void clearGlobalWarning()
setGlobalWarning(String)