public abstract class AbstractSciJavaDependencyChecker extends Object implements SciJavaDependencyChecker
SciJavaDependencyChecker superclass, containing useful
default implementations.| Constructor and Description |
|---|
AbstractSciJavaDependencyChecker() |
| Modifier and Type | Method and Description |
|---|---|
void |
debug(String message) |
boolean |
endVisit(DependencyNode node)
Ends the visit to to the specified dependency node.
|
void |
error(String message) |
boolean |
failed() |
void |
info(String message) |
boolean |
isFailFast() |
boolean |
isRoot(DependencyNode node)
Convenience method to check if a node is a root.
|
boolean |
matches(String groupId) |
void |
setFailed()
Mark this checker as in a failing state.
|
void |
setFailFast(boolean failFast) |
void |
setGroupIds(Set<String> groupIds) |
void |
setLog(org.apache.maven.plugin.logging.Log log) |
boolean |
stopVisit() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmakeExceptionMessagevisitpublic void setLog(org.apache.maven.plugin.logging.Log log)
setLog in interface SciJavaDependencyCheckerlog - Log to use by the SciJavaDependencyChecker.debug(java.lang.String), SciJavaDependencyChecker.error(java.lang.String) and
SciJavaDependencyChecker.info(java.lang.String) methods.public void debug(String message)
debug in interface SciJavaDependencyCheckermessage - Prints to the current Log's debug output, if a log
is present.public void error(String message)
error in interface SciJavaDependencyCheckermessage - Prints to the current Log's error output, if a log
is present.public void info(String message)
info in interface SciJavaDependencyCheckermessage - Prints to the current Log's info output, if a log is
present.public void setGroupIds(Set<String> groupIds)
setGroupIds in interface SciJavaDependencyCheckergroupIds - An optional inclusive list of Maven groupIds. If not null,
implementations should only fail on artifacts whose groupIds are
contained in this set.public boolean matches(String groupId)
matches in interface SciJavaDependencyCheckergroupId - Maven groupId to test.public void setFailFast(boolean failFast)
setFailFast in interface SciJavaDependencyCheckerfailFast - Flag indicating if a checker implementation should continue
after encountering its first error.public boolean isFailFast()
isFailFast in interface SciJavaDependencyCheckerpublic boolean isRoot(DependencyNode node)
SciJavaDependencyCheckerisRoot in interface SciJavaDependencyCheckernode - DependencyNode to test.public void setFailed()
SciJavaDependencyCheckersetFailed in interface SciJavaDependencyCheckerpublic boolean failed()
failed in interface SciJavaDependencyCheckerpublic boolean stopVisit()
stopVisit in interface SciJavaDependencyCheckerpublic boolean endVisit(DependencyNode node)
DependencyNodeVisitorendVisit in interface DependencyNodeVisitornode - the dependency node to visittrue to visit the specified dependency node's next sibling, false to skip the
specified dependency node's next siblings and proceed to its parentCopyright © 2014–2025 SciJava. All rights reserved.