Class Metadata
java.lang.Object
org.apache.maven.artifact.repository.metadata.Metadata
- All Implemented Interfaces:
Serializable
,Cloneable
Class Metadata.
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
The artifactId that this directory represents, if any.private String
The groupId that this directory represents, if any.private String
Field modelEncoding.private String
The version of the underlying metadata model.Field plugins.private String
The version that this directory represents, if any.private Versioning
Versioning information for the artifact. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Method addPlugin.clone()
Method clone.Get the artifactId that this directory represents, if any.Get the groupId that this directory represents, if any.Get the modelEncoding field.Get the version of the underlying metadata model.Method getPlugins.Get the version that this directory represents, if any.Get versioning information for the artifact.boolean
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 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 represented by this directory.void
setVersion
(String version) Set the version that this directory represents, if any.void
setVersioning
(Versioning versioning) Set versioning information for the artifact.
-
Field Details
-
modelVersion
The version of the underlying metadata model. -
groupId
The groupId that this directory represents, if any. -
artifactId
The artifactId that this directory represents, if any. -
version
The version that this directory represents, if any. It is used for artifact snapshots only. -
versioning
Versioning information for the artifact. -
plugins
Field plugins. -
modelEncoding
Field modelEncoding.
-
-
Constructor Details
-
Metadata
public Metadata()
-
-
Method Details
-
addPlugin
Method addPlugin.- Parameters:
plugin
-
-
clone
Method clone. -
getArtifactId
Get the artifactId that this directory represents, if any.- Returns:
- String
-
getGroupId
Get the groupId that this directory represents, if any.- 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 version that this directory represents, if any. It is used for artifact snapshots only.- Returns:
- String
-
getVersioning
Get versioning information for the artifact.- Returns:
- Versioning
-
removePlugin
Method removePlugin.- Parameters:
plugin
-
-
setArtifactId
Set the artifactId that this directory represents, if any.- Parameters:
artifactId
-
-
setGroupId
Set the groupId that this directory represents, if any.- Parameters:
groupId
-
-
setModelEncoding
Set the modelEncoding field.- Parameters:
modelEncoding
-
-
setModelVersion
Set the version of the underlying metadata model.- Parameters:
modelVersion
-
-
setPlugins
Set the set of plugin mappings for the group represented by this directory.- Parameters:
plugins
-
-
setVersion
Set the version that this directory represents, if any. It is used for artifact snapshots only.- Parameters:
version
-
-
setVersioning
Set versioning information for the artifact.- Parameters:
versioning
-
-
merge
-