Package org.apache.maven.model
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
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.maven.model.BaseObject
BaseObject.ChildrenTracking
-
Field Summary
Fields inherited from class org.apache.maven.model.BaseObject
childrenTracking, delegate
-
Constructor Summary
ConstructorDescriptionPluginContainer
(PluginContainer delegate) PluginContainer
(PluginContainer delegate, BaseObject parent) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clone()
boolean
void
Reset thepluginsMap
field tonull
getLocation
(Object key) Gets the location of the specified field in the input source.int
hashCode()
static List<PluginContainer>
static List<PluginContainer>
void
removePlugin
(Plugin plugin) protected boolean
void
setImportedFrom
(InputLocation location) void
setLocation
(Object key, InputLocation location) Sets the location of the specified field.void
setPlugins
(List<Plugin> plugins) toString()
Methods inherited from class org.apache.maven.model.BaseObject
update
-
Constructor Details
-
PluginContainer
public PluginContainer() -
PluginContainer
-
PluginContainer
-
-
Method Details
-
clone
-
getDelegate
- Overrides:
getDelegate
in classBaseObject
-
equals
-
hashCode
public int hashCode() -
getPlugins
-
setPlugins
-
addPlugin
-
removePlugin
-
getLocation
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 benull
.- Returns:
- The location of the field in the input source or
null
if unknown.
-
setLocation
Description copied from interface:InputLocationTracker
Sets the location of the specified field.- Parameters:
key
- The key of the field, must not benull
.location
- The location of the field, may benull
.
-
getImportedFrom
-
setImportedFrom
-
getLocationKeys
-
replace
- Overrides:
replace
in classBaseObject
-
pluginContainerToApiV4
-
pluginContainerToApiV3
-
flushPluginMap
public void flushPluginMap()Reset thepluginsMap
field tonull
-
getPluginsAsMap
- Returns:
- a Map of plugins field with
Plugins#getKey()
as key - See Also:
-
toString
-