Class Plugin

All Implemented Interfaces:
Serializable, Cloneable, InputLocationTracker

@Generated public class Plugin extends ConfigurationContainer implements Serializable, Cloneable
See Also:
  • Constructor Details

    • Plugin

      public Plugin()
    • Plugin

      public Plugin(Plugin delegate)
    • Plugin

      public Plugin(Plugin delegate, BaseObject parent)
  • Method Details

    • clone

      public Plugin clone()
      Overrides:
      clone in class ConfigurationContainer
    • getDelegate

      public Plugin getDelegate()
      Overrides:
      getDelegate in class ConfigurationContainer
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class ConfigurationContainer
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class ConfigurationContainer
    • getGroupId

      public String getGroupId()
    • setGroupId

      public void setGroupId(String groupId)
    • getArtifactId

      public String getArtifactId()
    • setArtifactId

      public void setArtifactId(String artifactId)
    • getVersion

      public String getVersion()
    • setVersion

      public void setVersion(String version)
    • getExtensions

      public String getExtensions()
    • setExtensions

      public void setExtensions(String extensions)
    • getExecutions

      @Nonnull public List<PluginExecution> getExecutions()
    • setExecutions

      public void setExecutions(List<PluginExecution> executions)
    • addExecution

      public void addExecution(PluginExecution execution)
    • removeExecution

      public void removeExecution(PluginExecution execution)
    • getDependencies

      @Nonnull public List<Dependency> getDependencies()
    • setDependencies

      public void setDependencies(List<Dependency> dependencies)
    • addDependency

      public void addDependency(Dependency dependency)
    • removeDependency

      public void removeDependency(Dependency dependency)
    • getLocation

      public InputLocation getLocation(Object key)
      Description copied from interface: InputLocationTracker
      Gets the location of the specified field in the input source.
      Specified by:
      getLocation in interface InputLocationTracker
      Overrides:
      getLocation in class ConfigurationContainer
      Parameters:
      key - The key of the field, must not be null.
      Returns:
      The location of the field in the input source or null if unknown.
    • setLocation

      public void setLocation(Object key, InputLocation location)
      Description copied from interface: InputLocationTracker
      Sets the location of the specified field.
      Specified by:
      setLocation in interface InputLocationTracker
      Overrides:
      setLocation in class ConfigurationContainer
      Parameters:
      key - The key of the field, must not be null.
      location - The location of the field, may be null.
    • replace

      protected boolean replace(Object oldDelegate, Object newDelegate)
      Overrides:
      replace in class ConfigurationContainer
    • pluginToApiV4

      public static List<Plugin> pluginToApiV4(List<Plugin> list)
    • pluginToApiV3

      public static List<Plugin> pluginToApiV3(List<Plugin> list)
    • isExtensions

      public boolean isExtensions()
    • setExtensions

      public void setExtensions(boolean extensions)
    • flushExecutionMap

      public void flushExecutionMap()
      Reset the executionMap field to null
    • getExecutionsAsMap

      public Map<String,PluginExecution> getExecutionsAsMap()
      Returns:
      a Map of executions field with PluginExecution#getId() as key
      See Also:
    • getId

      public String getId()
      Gets the identifier of the plugin.
      Returns:
      the plugin id in the form <groupId>:<artifactId>:<version>, never null
    • getKey

      public String getKey()
      Returns:
      the key of the plugin, ie groupId:artifactId
    • constructKey

      public static String constructKey(String groupId, String artifactId)
      Parameters:
      groupId - the group ID of the plugin in the repository
      artifactId - the artifact ID of the reporting plugin in the repository
      Returns:
      the key of the plugin, ie groupId:artifactId