org.apache.maven.artifact.repository.metadata
Class Metadata

java.lang.Object
  extended by 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:
Serialized Form

Constructor Summary
Metadata()
           
 
Method Summary
 void addPlugin(Plugin plugin)
          Method addPlugin.
 Metadata clone()
          Method clone.
 String getArtifactId()
          Get the artifactId that is directory represents, if any.
 String getGroupId()
          Get the groupId that is directory represents, if any.
 String getModelEncoding()
          Get the modelEncoding field.
 String getModelVersion()
          Get the version of the underlying metadata model.
 List<Plugin> getPlugins()
          Method getPlugins.
 String getVersion()
          Get the version that is directory represents, if any.
 Versioning getVersioning()
          Get versioning information for the artifact.
 boolean merge(Metadata sourceMetadata)
           
 void removePlugin(Plugin plugin)
          Method removePlugin.
 void setArtifactId(String artifactId)
          Set the artifactId that is directory represents, if any.
 void setGroupId(String groupId)
          Set the groupId that is directory represents, if any.
 void setModelEncoding(String modelEncoding)
          Set the modelEncoding field.
 void setModelVersion(String modelVersion)
          Set the version of the underlying metadata model.
 void setPlugins(List<Plugin> plugins)
          Set the set of plugin mappings for the group.
 void setVersion(String version)
          Set the version that is directory represents, if any.
 void setVersioning(Versioning versioning)
          Set versioning information for the artifact.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Metadata

public Metadata()
Method Detail

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 is directory represents, if any.

Returns:
String

getGroupId

public String getGroupId()
Get the groupId that is 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 is directory represents, if any.

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 is directory represents, if any.

Parameters:
artifactId -

setGroupId

public void setGroupId(String groupId)
Set the groupId that is 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.

Parameters:
plugins -

setVersion

public void setVersion(String version)
Set the version that is directory represents, if any.

Parameters:
version -

setVersioning

public void setVersioning(Versioning versioning)
Set versioning information for the artifact.

Parameters:
versioning -

merge

public boolean merge(Metadata sourceMetadata)


Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.