java.lang.Object
org.apache.maven.artifact.repository.metadata.Metadata
All Implemented Interfaces:
Serializable, Cloneable

public class Metadata extends Object implements Serializable, Cloneable
Class Metadata.
Version:
$Revision$ $Date$
See Also:
  • Field Details

    • modelVersion

      private String modelVersion
      The version of the underlying metadata model.
    • groupId

      private String groupId
      The groupId that this directory represents, if any.
    • artifactId

      private String artifactId
      The artifactId that this directory represents, if any.
    • version

      private String version
      The version that this directory represents, if any. It is used for artifact snapshots only.
    • versioning

      private Versioning versioning
      Versioning information for the artifact.
    • plugins

      private List<Plugin> plugins
      Field plugins.
    • modelEncoding

      private String modelEncoding
      Field modelEncoding.
  • Constructor Details

    • Metadata

      public Metadata()
  • Method Details

    • addPlugin

      public void addPlugin(Plugin plugin)
      Method addPlugin.
      Parameters:
      plugin -
    • clone

      public Metadata clone()
      Method clone.
      Overrides:
      clone in class Object
      Returns:
      Metadata
    • getArtifactId

      public String getArtifactId()
      Get the artifactId that this directory represents, if any.
      Returns:
      String
    • getGroupId

      public String getGroupId()
      Get the groupId that this directory represents, if any.
      Returns:
      String
    • getModelEncoding

      public String getModelEncoding()
      Get the modelEncoding field.
      Returns:
      String
    • getModelVersion

      public String getModelVersion()
      Get the version of the underlying metadata model.
      Returns:
      String
    • getPlugins

      public List<Plugin> getPlugins()
      Method getPlugins.
      Returns:
      List
    • getVersion

      public String getVersion()
      Get the version that this directory represents, if any. It is used for artifact snapshots only.
      Returns:
      String
    • getVersioning

      public Versioning getVersioning()
      Get versioning information for the artifact.
      Returns:
      Versioning
    • removePlugin

      public void removePlugin(Plugin plugin)
      Method removePlugin.
      Parameters:
      plugin -
    • setArtifactId

      public void setArtifactId(String artifactId)
      Set the artifactId that this directory represents, if any.
      Parameters:
      artifactId -
    • setGroupId

      public void setGroupId(String groupId)
      Set the groupId that this directory represents, if any.
      Parameters:
      groupId -
    • setModelEncoding

      public void setModelEncoding(String modelEncoding)
      Set the modelEncoding field.
      Parameters:
      modelEncoding -
    • setModelVersion

      public void setModelVersion(String modelVersion)
      Set the version of the underlying metadata model.
      Parameters:
      modelVersion -
    • setPlugins

      public void setPlugins(List<Plugin> plugins)
      Set the set of plugin mappings for the group represented by this directory.
      Parameters:
      plugins -
    • setVersion

      public void setVersion(String version)
      Set the version that this directory represents, if any. It is used for artifact snapshots only.
      Parameters:
      version -
    • setVersioning

      public void setVersioning(Versioning versioning)
      Set versioning information for the artifact.
      Parameters:
      versioning -
    • merge

      public boolean merge(Metadata sourceMetadata)