Class PluginContainer

java.lang.Object
org.apache.maven.model.BaseObject
org.apache.maven.model.PluginContainer
All Implemented Interfaces:
Serializable, Cloneable, InputLocationTracker
Direct Known Subclasses:
PluginConfiguration, PluginManagement

@Generated public class PluginContainer extends BaseObject
See Also:
  • Constructor Details

    • PluginContainer

      public PluginContainer()
    • PluginContainer

      public PluginContainer(org.apache.maven.api.model.PluginContainer delegate)
    • PluginContainer

      public PluginContainer(org.apache.maven.api.model.PluginContainer delegate, BaseObject parent)
  • Method Details

    • clone

      public PluginContainer clone()
      Overrides:
      clone in class Object
    • getDelegate

      public org.apache.maven.api.model.PluginContainer getDelegate()
      Overrides:
      getDelegate in class BaseObject
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getPlugins

      @Nonnull public List<Plugin> getPlugins()
    • setPlugins

      public void setPlugins(List<Plugin> plugins)
    • addPlugin

      public void addPlugin(Plugin plugin)
    • removePlugin

      public void removePlugin(Plugin plugin)
    • getLocation

      public InputLocation getLocation(Object key)
      Description copied from interface: InputLocationTracker
      Gets the location of the specified field in the input source.
      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.
      Parameters:
      key - The key of the field, must not be null.
      location - The location of the field, may be null.
    • getImportedFrom

      public InputLocation getImportedFrom()
    • setImportedFrom

      public void setImportedFrom(InputLocation location)
    • getLocationKeys

      public Set<Object> getLocationKeys()
    • replace

      protected boolean replace(Object oldDelegate, Object newDelegate)
      Overrides:
      replace in class BaseObject
    • pluginContainerToApiV4

      public static List<org.apache.maven.api.model.PluginContainer> pluginContainerToApiV4(List<PluginContainer> list)
    • pluginContainerToApiV3

      public static List<PluginContainer> pluginContainerToApiV3(List<org.apache.maven.api.model.PluginContainer> list)
    • flushPluginMap

      public void flushPluginMap()
      Reset the pluginsMap field to null
    • getPluginsAsMap

      public Map<String,Plugin> getPluginsAsMap()
      Returns:
      a Map of plugins field with Plugins#getKey() as key
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object