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

public abstract class AbstractUpdatesModel<V extends ArtifactVersions> extends Object
Base class for using with the ReportRenderer API
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     <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 Type
    Method
    Description
    Map<org.apache.maven.model.Dependency, V>
    Returns a map of all updates per "artifact" (here modeled by Dependency).
    Map<org.apache.maven.model.Dependency, V>
    Returns a map of "management updates" per "artifact" (here modeled by Dependency).
    Map<org.apache.maven.model.Dependency, V>
    Returns a map of updates per "artifact" (here modeled by Dependency).

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 Dependency to model dependencies or plugins, hereby called artifacts, and therefore requires an adapter function the supplier argument, converting the type of artifact to a Dependency.

      Type Parameters:
      K - concrete ArtifactVersions subclass, used by the provided maps
      Parameters:
      artifactUpdates - map of artifact (dependency or plugin) updates per artifact
      artifactManagementUpdates - map of artifact (dependency or plugin) management updates per artifact
      supplier - function converting the given "artifact" type (plugin, dependency) to a Dependency
  • Method Details

    • getArtifactUpdates

      public Map<org.apache.maven.model.Dependency, V> getArtifactUpdates()
      Returns a map of updates per "artifact" (here modeled by Dependency).
      Returns:
      map of updates
    • getArtifactManagementUpdates

      public Map<org.apache.maven.model.Dependency, V> getArtifactManagementUpdates()
      Returns a map of "management updates" per "artifact" (here modeled by Dependency).
      Returns:
      map of "management updates"
    • getAllUpdates

      public Map<org.apache.maven.model.Dependency, V> getAllUpdates()
      Returns a map of all updates per "artifact" (here modeled by Dependency).
      Returns:
      map of all updates