Class Metadata
java.lang.Object
org.apache.maven.artifact.repository.metadata.Metadata
- All Implemented Interfaces:
Serializable
,Cloneable
Class Metadata.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Method addPlugin.clone()
Method clone.Get the artifactId when this directory represents "groupId/artifactId" or "groupId/artifactId/version".Get the groupId when this directory represents "groupId/artifactId" or "groupId/artifactId/version".Get the modelEncoding field.Get the version of the underlying metadata model.Method getPlugins.Get the base version (ie.Get versioning information when this directory represents "groupId/artifactId" or "groupId/artifactId/version".boolean
void
removePlugin
(Plugin plugin) Method removePlugin.void
setArtifactId
(String artifactId) Set the artifactId when this directory represents "groupId/artifactId" or "groupId/artifactId/version".void
setGroupId
(String groupId) Set the groupId when this directory represents "groupId/artifactId" or "groupId/artifactId/version".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 plugins when this directory represents a "groupId".void
setVersion
(String version) Set the base version (ie.void
setVersioning
(Versioning versioning) Set versioning information when this directory represents "groupId/artifactId" or "groupId/artifactId/version".
-
Constructor Details
-
Metadata
public Metadata()
-
-
Method Details
-
addPlugin
Method addPlugin.- Parameters:
plugin
- a plugin object.
-
clone
Method clone. -
getArtifactId
Get the artifactId when this directory represents "groupId/artifactId" or "groupId/artifactId/version".- Returns:
- String
-
getGroupId
Get the groupId when this directory represents "groupId/artifactId" or "groupId/artifactId/version".- Returns:
- String
-
getModelEncoding
Get the modelEncoding field.- Returns:
- String
-
getModelVersion
Get the version of the underlying metadata model.- Returns:
- String
-
getPlugins
Method getPlugins.- Returns:
- List
-
getVersion
Get the base version (ie. ending in-SNAPSHOT
) when this directory represents a "groupId/artifactId/version" for a SNAPSHOT.- Returns:
- String
-
getVersioning
Get versioning information when this directory represents "groupId/artifactId" or "groupId/artifactId/version".- Returns:
- Versioning
-
removePlugin
Method removePlugin.- Parameters:
plugin
- a plugin object.
-
setArtifactId
Set the artifactId when this directory represents "groupId/artifactId" or "groupId/artifactId/version".- Parameters:
artifactId
- a artifactId object.
-
setGroupId
Set the groupId when this directory represents "groupId/artifactId" or "groupId/artifactId/version".- Parameters:
groupId
- a groupId object.
-
setModelEncoding
Set the modelEncoding field.- Parameters:
modelEncoding
- a modelEncoding object.
-
setModelVersion
Set the version of the underlying metadata model.- Parameters:
modelVersion
- a modelVersion object.
-
setPlugins
Set the set of plugins when this directory represents a "groupId".- Parameters:
plugins
- a plugins object.
-
setVersion
Set the base version (ie. ending in-SNAPSHOT
) when this directory represents a "groupId/artifactId/version" for a SNAPSHOT.- Parameters:
version
- a version object.
-
setVersioning
Set versioning information when this directory represents "groupId/artifactId" or "groupId/artifactId/version".- Parameters:
versioning
- a versioning object.
-
merge
-