Class Metadata
- java.lang.Object
-
- org.apache.maven.artifact.repository.metadata.Metadata
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class Metadata extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable
Class Metadata.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Metadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPlugin(Plugin plugin)
Method addPlugin.Metadata
clone()
Method clone.java.lang.String
getArtifactId()
Get the artifactId that this directory represents, if any.java.lang.String
getGroupId()
Get the groupId that this directory represents, if any.java.lang.String
getModelEncoding()
Get the modelEncoding field.java.lang.String
getModelVersion()
Get the version of the underlying metadata model.java.util.List<Plugin>
getPlugins()
Method getPlugins.java.lang.String
getVersion()
Get the version that this directory represents, if any.Versioning
getVersioning()
Get versioning information for the artifact.boolean
merge(Metadata sourceMetadata)
void
removePlugin(Plugin plugin)
Method removePlugin.void
setArtifactId(java.lang.String artifactId)
Set the artifactId that this directory represents, if any.void
setGroupId(java.lang.String groupId)
Set the groupId that this directory represents, if any.void
setModelEncoding(java.lang.String modelEncoding)
Set the modelEncoding field.void
setModelVersion(java.lang.String modelVersion)
Set the version of the underlying metadata model.void
setPlugins(java.util.List<Plugin> plugins)
Set the set of plugin mappings for the group represented by this directory.void
setVersion(java.lang.String version)
Set the version that this directory represents, if any.void
setVersioning(Versioning versioning)
Set versioning information for the artifact.
-
-
-
Method Detail
-
addPlugin
public void addPlugin(Plugin plugin)
Method addPlugin.- Parameters:
plugin
-
-
clone
public Metadata clone()
Method clone.- Overrides:
clone
in classjava.lang.Object
- Returns:
- Metadata
-
getArtifactId
public java.lang.String getArtifactId()
Get the artifactId that this directory represents, if any.- Returns:
- String
-
getGroupId
public java.lang.String getGroupId()
Get the groupId that this directory represents, if any.- Returns:
- String
-
getModelEncoding
public java.lang.String getModelEncoding()
Get the modelEncoding field.- Returns:
- String
-
getModelVersion
public java.lang.String getModelVersion()
Get the version of the underlying metadata model.- Returns:
- String
-
getPlugins
public java.util.List<Plugin> getPlugins()
Method getPlugins.- Returns:
- List
-
getVersion
public java.lang.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(java.lang.String artifactId)
Set the artifactId that this directory represents, if any.- Parameters:
artifactId
-
-
setGroupId
public void setGroupId(java.lang.String groupId)
Set the groupId that this directory represents, if any.- Parameters:
groupId
-
-
setModelEncoding
public void setModelEncoding(java.lang.String modelEncoding)
Set the modelEncoding field.- Parameters:
modelEncoding
-
-
setModelVersion
public void setModelVersion(java.lang.String modelVersion)
Set the version of the underlying metadata model.- Parameters:
modelVersion
-
-
setPlugins
public void setPlugins(java.util.List<Plugin> plugins)
Set the set of plugin mappings for the group represented by this directory.- Parameters:
plugins
-
-
setVersion
public void setVersion(java.lang.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)
-
-