Package org.apache.maven.model
Class ModelBase
java.lang.Object
org.apache.maven.model.BaseObject
org.apache.maven.model.ModelBase
- All Implemented Interfaces:
Serializable
,Cloneable
,InputLocationTracker
- 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDependency
(Dependency dependency) void
void
addPluginRepository
(Repository pluginRepository) void
addProperty
(String key, String value) void
addRepository
(Repository repository) clone()
boolean
getLocation
(Object key) Gets the location of the specified field in the input source.int
hashCode()
modelBaseToApiV3
(List<ModelBase> list) modelBaseToApiV4
(List<ModelBase> list) void
removeDependency
(Dependency dependency) void
removeModule
(String module) void
removePluginRepository
(Repository pluginRepository) void
removeRepository
(Repository repository) protected boolean
void
setDependencies
(List<Dependency> dependencies) void
setDependencyManagement
(DependencyManagement dependencyManagement) void
setDistributionManagement
(DistributionManagement distributionManagement) void
setLocation
(Object key, InputLocation location) Sets the location of the specified field.void
setModules
(List<String> modules) void
setPluginRepositories
(List<Repository> pluginRepositories) void
setProperties
(Properties properties) void
setReporting
(Reporting reporting) void
setRepositories
(List<Repository> repositories) Methods inherited from class org.apache.maven.model.BaseObject
update
-
Constructor Details
-
ModelBase
public ModelBase() -
ModelBase
-
ModelBase
-
-
Method Details
-
clone
-
getDelegate
- Overrides:
getDelegate
in classBaseObject
-
equals
-
hashCode
public int hashCode() -
getModules
-
setModules
-
addModule
-
removeModule
-
getDistributionManagement
-
setDistributionManagement
-
getProperties
-
setProperties
-
addProperty
-
getDependencyManagement
-
setDependencyManagement
-
getDependencies
-
setDependencies
-
addDependency
-
removeDependency
-
getRepositories
-
setRepositories
-
addRepository
-
removeRepository
-
getPluginRepositories
-
setPluginRepositories
-
addPluginRepository
-
removePluginRepository
-
getReporting
-
setReporting
-
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
.
-
replace
- Overrides:
replace
in classBaseObject
-
modelBaseToApiV4
-
modelBaseToApiV3
-