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

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

public class Metadata
extends Object
implements Serializable

Class Metadata.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Metadata()
           
 
Method Summary
 void addPlugin(Plugin plugin)
          Method addPlugin.
 String getArtifactId()
          Get the artifactId that this directory represents, if any.
 String getGroupId()
          Get the groupId that this directory represents, if any.
 String getModelEncoding()
          Method getModelEncoding.
 List<Plugin> getPlugins()
          Method getPlugins.
 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(String artifactId)
          Set the artifactId that this directory represents, if any.
 void setGroupId(String groupId)
          Set the groupId that this directory represents, if any.
 void setModelEncoding(String modelEncoding)
          Set an encoding used for reading/writing the model.
 void setPlugins(List<Plugin> plugins)
          Set the set of plugin mappings for the group.
 void setVersion(String version)
          Set the version that this directory represents, if any.
 void setVersioning(Versioning versioning)
          Set versioning information for the artifact.
 
Methods inherited from class java.lang.Object
clone, 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 -

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()
Method getModelEncoding.

Returns:
the current encoding used when reading/writing this model

getPlugins

public List<Plugin> getPlugins()
Method getPlugins.

Returns:
List

getVersion

public String getVersion()
Get the version that this 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 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 an encoding used for reading/writing the model.

Parameters:
modelEncoding -

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 this 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-2009 The Apache Software Foundation. All Rights Reserved.