Class Model

All Implemented Interfaces:
Serializable, Cloneable, InputLocationTracker

@Generated public class Model extends ModelBase implements Serializable, Cloneable
See Also:
  • Constructor Details

    • Model

      public Model()
    • Model

      public Model(Model delegate)
    • Model

      public Model(Model delegate, BaseObject parent)
  • Method Details

    • clone

      public Model clone()
      Overrides:
      clone in class ModelBase
    • getDelegate

      public Model getDelegate()
      Overrides:
      getDelegate in class ModelBase
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class ModelBase
    • getModelEncoding

      public String getModelEncoding()
    • getModelVersion

      public String getModelVersion()
    • setModelVersion

      public void setModelVersion(String modelVersion)
    • getParent

      public Parent getParent()
    • setParent

      public void setParent(Parent parent)
    • getGroupId

      public String getGroupId()
    • setGroupId

      public void setGroupId(String groupId)
    • getArtifactId

      public String getArtifactId()
    • setArtifactId

      public void setArtifactId(String artifactId)
    • getVersion

      public String getVersion()
    • setVersion

      public void setVersion(String version)
    • getPackaging

      public String getPackaging()
    • setPackaging

      public void setPackaging(String packaging)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getUrl

      public String getUrl()
    • setUrl

      public void setUrl(String url)
    • getChildProjectUrlInheritAppendPath

      public String getChildProjectUrlInheritAppendPath()
    • setChildProjectUrlInheritAppendPath

      public void setChildProjectUrlInheritAppendPath(String childProjectUrlInheritAppendPath)
    • isRoot

      public boolean isRoot()
    • setRoot

      public void setRoot(boolean root)
    • isPreserveModelVersion

      public boolean isPreserveModelVersion()
    • setPreserveModelVersion

      public void setPreserveModelVersion(boolean preserveModelVersion)
    • getInceptionYear

      public String getInceptionYear()
    • setInceptionYear

      public void setInceptionYear(String inceptionYear)
    • getOrganization

      public Organization getOrganization()
    • setOrganization

      public void setOrganization(Organization organization)
    • getLicenses

      @Nonnull public List<License> getLicenses()
    • setLicenses

      public void setLicenses(List<License> licenses)
    • addLicense

      public void addLicense(License license)
    • removeLicense

      public void removeLicense(License license)
    • getDevelopers

      @Nonnull public List<Developer> getDevelopers()
    • setDevelopers

      public void setDevelopers(List<Developer> developers)
    • addDeveloper

      public void addDeveloper(Developer developer)
    • removeDeveloper

      public void removeDeveloper(Developer developer)
    • getContributors

      @Nonnull public List<Contributor> getContributors()
    • setContributors

      public void setContributors(List<Contributor> contributors)
    • addContributor

      public void addContributor(Contributor contributor)
    • removeContributor

      public void removeContributor(Contributor contributor)
    • getMailingLists

      @Nonnull public List<MailingList> getMailingLists()
    • setMailingLists

      public void setMailingLists(List<MailingList> mailingLists)
    • addMailingList

      public void addMailingList(MailingList mailingList)
    • removeMailingList

      public void removeMailingList(MailingList mailingList)
    • getPrerequisites

      public Prerequisites getPrerequisites()
    • setPrerequisites

      public void setPrerequisites(Prerequisites prerequisites)
    • getScm

      public Scm getScm()
    • setScm

      public void setScm(Scm scm)
    • getIssueManagement

      public IssueManagement getIssueManagement()
    • setIssueManagement

      public void setIssueManagement(IssueManagement issueManagement)
    • getCiManagement

      public CiManagement getCiManagement()
    • setCiManagement

      public void setCiManagement(CiManagement ciManagement)
    • getBuild

      public Build getBuild()
    • setBuild

      public void setBuild(Build build)
    • getProfiles

      @Nonnull public List<Profile> getProfiles()
    • setProfiles

      public void setProfiles(List<Profile> profiles)
    • addProfile

      public void addProfile(Profile profile)
    • removeProfile

      public void removeProfile(Profile profile)
    • getLocation

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

      protected boolean replace(Object oldDelegate, Object newDelegate)
      Overrides:
      replace in class ModelBase
    • modelToApiV4

      public static List<Model> modelToApiV4(List<Model> list)
    • modelToApiV3

      public static List<Model> modelToApiV3(List<Model> list)
    • getPomFile

      public File getPomFile()
      Gets the POM file for the corresponding project (if any).
      Returns:
      The POM file from which this model originated or null if this model does not belong to a local project (e.g. describes the metadata of some artifact from the repository).
    • setPomFile

      public void setPomFile(File pomFile)
    • setModelEncoding

      public void setModelEncoding(String modelEncoding)
    • getProjectDirectory

      public File getProjectDirectory()
      Gets the base directory for the corresponding project (if any).
      Returns:
      The base directory for the corresponding project or null if this model does not belong to a local project (e.g. describes the metadata of some artifact from the repository).
    • getId

      public String getId()
      Returns:
      the model id as groupId:artifactId:packaging:version
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isChildProjectUrlInheritAppendPath

      public boolean isChildProjectUrlInheritAppendPath()
    • setChildProjectUrlInheritAppendPath

      public void setChildProjectUrlInheritAppendPath(boolean childProjectUrlInheritAppendPath)