Package org.apache.maven.model
Class Model
java.lang.Object
org.apache.maven.model.BaseObject
org.apache.maven.model.ModelBase
org.apache.maven.model.Model
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContributor(Contributor contributor) voidaddDeveloper(Developer developer) voidaddLicense(License license) voidaddMailingList(MailingList mailingList) voidaddProfile(Profile profile) clone()booleangetBuild()getId()getLocation(Object key) Gets the location of the specified field in the input source.getName()Gets the POM file for the corresponding project (if any).Gets the base directory for the corresponding project (if any).getScm()getUrl()inthashCode()booleanmodelToApiV3(List<Model> list) modelToApiV4(List<Model> list) voidremoveContributor(Contributor contributor) voidremoveDeveloper(Developer developer) voidremoveLicense(License license) voidremoveMailingList(MailingList mailingList) voidremoveProfile(Profile profile) protected booleanvoidsetArtifactId(String artifactId) voidvoidsetChildProjectUrlInheritAppendPath(boolean childProjectUrlInheritAppendPath) voidsetChildProjectUrlInheritAppendPath(String childProjectUrlInheritAppendPath) voidsetCiManagement(CiManagement ciManagement) voidsetContributors(List<Contributor> contributors) voidsetDescription(String description) voidsetDevelopers(List<Developer> developers) voidsetGroupId(String groupId) voidsetInceptionYear(String inceptionYear) voidsetIssueManagement(IssueManagement issueManagement) voidsetLicenses(List<License> licenses) voidsetLocation(Object key, InputLocation location) Sets the location of the specified field.voidsetMailingLists(List<MailingList> mailingLists) voidsetModelEncoding(String modelEncoding) voidsetModelVersion(String modelVersion) voidvoidsetOrganization(Organization organization) voidsetPackaging(String packaging) voidvoidsetPomFile(File pomFile) voidsetPrerequisites(Prerequisites prerequisites) voidsetProfiles(List<Profile> profiles) voidvoidvoidsetVersion(String version) 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, setRepositoriesMethods inherited from class org.apache.maven.model.BaseObject
update
-
Constructor Details
-
Model
public Model() -
Model
-
Model
-
-
Method Details
-
clone
-
getDelegate
- Overrides:
getDelegatein classModelBase
-
equals
-
hashCode
public int hashCode() -
getModelEncoding
-
getModelVersion
-
setModelVersion
-
getParent
-
setParent
-
getGroupId
-
setGroupId
-
getArtifactId
-
setArtifactId
-
getVersion
-
setVersion
-
getPackaging
-
setPackaging
-
getName
-
setName
-
getDescription
-
setDescription
-
getUrl
-
setUrl
-
getChildProjectUrlInheritAppendPath
-
setChildProjectUrlInheritAppendPath
-
getInceptionYear
-
setInceptionYear
-
getOrganization
-
setOrganization
-
getLicenses
-
setLicenses
-
addLicense
-
removeLicense
-
getDevelopers
-
setDevelopers
-
addDeveloper
-
removeDeveloper
-
getContributors
-
setContributors
-
addContributor
-
removeContributor
-
getMailingLists
-
setMailingLists
-
addMailingList
-
removeMailingList
-
getPrerequisites
-
setPrerequisites
-
getScm
-
setScm
-
getIssueManagement
-
setIssueManagement
-
getCiManagement
-
setCiManagement
-
getBuild
-
setBuild
-
getProfiles
-
setProfiles
-
addProfile
-
removeProfile
-
getLocation
Description copied from interface:InputLocationTrackerGets the location of the specified field in the input source.- Specified by:
getLocationin interfaceInputLocationTracker- Overrides:
getLocationin classModelBase- Parameters:
key- The key of the field, must not benull.- Returns:
- The location of the field in the input source or
nullif unknown.
-
setLocation
Description copied from interface:InputLocationTrackerSets the location of the specified field.- Specified by:
setLocationin interfaceInputLocationTracker- Overrides:
setLocationin classModelBase- Parameters:
key- The key of the field, must not benull.location- The location of the field, may benull.
-
replace
-
modelToApiV4
-
modelToApiV3
-
getPomFile
Gets the POM file for the corresponding project (if any).- Returns:
- The POM file from which this model originated or
nullif this model does not belong to a local project (e.g. describes the metadata of some artifact from the repository).
-
setPomFile
-
setModelEncoding
-
getProjectDirectory
Gets the base directory for the corresponding project (if any).- Returns:
- The base directory for the corresponding project or
nullif this model does not belong to a local project (e.g. describes the metadata of some artifact from the repository).
-
getId
- Returns:
- the model id as
groupId:artifactId:packaging:version
-
toString
-
isChildProjectUrlInheritAppendPath
public boolean isChildProjectUrlInheritAppendPath() -
setChildProjectUrlInheritAppendPath
public void setChildProjectUrlInheritAppendPath(boolean childProjectUrlInheritAppendPath)
-