Package org.apache.maven.model
Class Profile
java.lang.Object
org.apache.maven.model.BaseObject
org.apache.maven.model.ModelBase
org.apache.maven.model.Profile
- 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 TypeMethodDescriptionclone()
boolean
getBuild()
getId()
getLocation
(Object key) Gets the location of the specified field in the input source.int
hashCode()
profileToApiV3
(List<Profile> list) profileToApiV4
(List<Profile> list) protected boolean
void
setActivation
(Activation activation) void
void
void
setLocation
(Object key, InputLocation location) Sets the location of the specified field.void
toString()
Methods inherited from class org.apache.maven.model.ModelBase
addDependency, addModule, addPluginRepository, addProperty, addRepository, getDependencies, getDependencyManagement, getDistributionManagement, getModules, getPluginRepositories, getProperties, getReporting, getRepositories, modelBaseToApiV3, modelBaseToApiV4, removeDependency, removeModule, removePluginRepository, removeRepository, setDependencies, setDependencyManagement, setDistributionManagement, setModules, setPluginRepositories, setProperties, setReporting, setRepositories
Methods inherited from class org.apache.maven.model.BaseObject
update
-
Field Details
-
SOURCE_POM
- See Also:
-
SOURCE_SETTINGS
- See Also:
-
-
Constructor Details
-
Profile
public Profile() -
Profile
-
Profile
-
-
Method Details
-
clone
-
getDelegate
- Overrides:
getDelegate
in classModelBase
-
equals
-
hashCode
public int hashCode() -
getId
-
setId
-
getActivation
-
setActivation
-
getBuild
-
setBuild
-
getLocation
Description copied from interface:InputLocationTracker
Gets the location of the specified field in the input source.- Specified by:
getLocation
in interfaceInputLocationTracker
- Overrides:
getLocation
in classModelBase
- 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.- Specified by:
setLocation
in interfaceInputLocationTracker
- Overrides:
setLocation
in classModelBase
- Parameters:
key
- The key of the field, must not benull
.location
- The location of the field, may benull
.
-
replace
-
profileToApiV4
-
profileToApiV3
-
setSource
-
getSource
-
toString
-