Class AbstractUpdatesModel<V extends ArtifactVersions>
java.lang.Object
org.codehaus.mojo.versions.reporting.model.AbstractUpdatesModel<V>
- Type Parameters:
V- class extending ArtifactVersion in the constructor
- Direct Known Subclasses:
DependencyUpdatesModel, PluginUpdatesModel
Base class for using with the ReportRenderer API
-
Constructor Summary
ConstructorsModifierConstructorDescription<K>AbstractUpdatesModel(Map<K, V> artifactUpdates, Map<K, V> artifactManagementUpdates, Function<K, org.apache.maven.model.Dependency> supplier) Creates a new instance of the model, based on the provided map of artifact (dependency or plugin) updates per artifact, provided map of dependency or plugin management updates, and provided list of all updates. -
Method Summary
Modifier and TypeMethodDescriptionReturns a map of all updates per "artifact" (here modeled byDependency).Returns a map of "management updates" per "artifact" (here modeled byDependency).Returns a map of updates per "artifact" (here modeled byDependency).
-
Constructor Details
-
AbstractUpdatesModel
public <K> AbstractUpdatesModel(Map<K, V> artifactUpdates, Map<K, V> artifactManagementUpdates, Function<K, org.apache.maven.model.Dependency> supplier) Creates a new instance of the model, based on the provided map of artifact (dependency or plugin) updates per artifact, provided map of dependency or plugin management updates, and provided list of all updates.
The model uses
Dependencyto model dependencies or plugins, hereby called artifacts, and therefore requires an adapter function thesupplierargument, converting the type of artifact to aDependency.- Type Parameters:
K- concreteArtifactVersionssubclass, used by the provided maps- Parameters:
artifactUpdates- map of artifact (dependency or plugin) updates per artifactartifactManagementUpdates- map of artifact (dependency or plugin) management updates per artifactsupplier- function converting the given "artifact" type (plugin, dependency) to aDependency
-
-
Method Details
-
getArtifactUpdates
-
getArtifactManagementUpdates
-
getAllUpdates
-