Class ModelBase

java.lang.Object
org.apache.maven.model.BaseObject
org.apache.maven.model.ModelBase
All Implemented Interfaces:
Serializable, Cloneable, InputLocationTracker
Direct Known Subclasses:
Model, Profile

@Generated public class ModelBase extends BaseObject
See Also:
  • Constructor Details

    • ModelBase

      public ModelBase()
    • ModelBase

      public ModelBase(ModelBase delegate)
    • ModelBase

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

    • clone

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getModules

      @Nonnull public List<String> getModules()
    • setModules

      public void setModules(List<String> modules)
    • addModule

      public void addModule(String module)
    • removeModule

      public void removeModule(String module)
    • getDistributionManagement

      public DistributionManagement getDistributionManagement()
    • setDistributionManagement

      public void setDistributionManagement(DistributionManagement distributionManagement)
    • getProperties

      @Nonnull public Properties getProperties()
    • setProperties

      public void setProperties(Properties properties)
    • addProperty

      public void addProperty(String key, String value)
    • getDependencyManagement

      public DependencyManagement getDependencyManagement()
    • setDependencyManagement

      public void setDependencyManagement(DependencyManagement dependencyManagement)
    • getDependencies

      @Nonnull public List<Dependency> getDependencies()
    • setDependencies

      public void setDependencies(List<Dependency> dependencies)
    • addDependency

      public void addDependency(Dependency dependency)
    • removeDependency

      public void removeDependency(Dependency dependency)
    • getRepositories

      @Nonnull public List<Repository> getRepositories()
    • setRepositories

      public void setRepositories(List<Repository> repositories)
    • addRepository

      public void addRepository(Repository repository)
    • removeRepository

      public void removeRepository(Repository repository)
    • getPluginRepositories

      @Nonnull public List<Repository> getPluginRepositories()
    • setPluginRepositories

      public void setPluginRepositories(List<Repository> pluginRepositories)
    • addPluginRepository

      public void addPluginRepository(Repository pluginRepository)
    • removePluginRepository

      public void removePluginRepository(Repository pluginRepository)
    • getReporting

      public Reporting getReporting()
    • setReporting

      public void setReporting(Reporting reporting)
    • getLocation

      public InputLocation getLocation(Object key)
      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 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.
      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 BaseObject
    • modelBaseToApiV4

      public static List<ModelBase> modelBaseToApiV4(List<ModelBase> list)
    • modelBaseToApiV3

      public static List<ModelBase> modelBaseToApiV3(List<ModelBase> list)