public class Metadata
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
artifactId
The artifactId when this directory represents
"groupId/artifactId" or "groupId/artifactId/version".
|
private java.lang.String |
groupId
The groupId when this directory represents
"groupId/artifactId" or "groupId/artifactId/version".
|
private java.lang.String |
modelEncoding
Field modelEncoding.
|
private java.lang.String |
modelVersion
The version of the underlying metadata model.
|
private java.util.List<Plugin> |
plugins
Deprecated.
|
private java.lang.String |
version
The base version (ie.
|
private Versioning |
versioning
Versioning information when this directory represents
"groupId/artifactId" or "groupId/artifactId/version".
|
Constructor and Description |
---|
Metadata() |
Modifier and Type | Method and Description |
---|---|
void |
addPlugin(Plugin plugin)
Method addPlugin.
|
Metadata |
clone()
Method clone.
|
java.lang.String |
getArtifactId()
Get the artifactId when this directory represents
"groupId/artifactId" or "groupId/artifactId/version".
|
java.lang.String |
getGroupId()
Get the groupId when this directory represents
"groupId/artifactId" or "groupId/artifactId/version".
|
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.
|
private java.lang.String |
getSnapshotVersionKey(SnapshotVersion sv) |
java.lang.String |
getVersion()
Get the base version (ie.
|
Versioning |
getVersioning()
Get versioning information when this directory represents
"groupId/artifactId" or "groupId/artifactId/version".
|
boolean |
merge(Metadata sourceMetadata) |
void |
removePlugin(Plugin plugin)
Method removePlugin.
|
void |
setArtifactId(java.lang.String artifactId)
Set the artifactId when this directory represents
"groupId/artifactId" or "groupId/artifactId/version".
|
void |
setGroupId(java.lang.String groupId)
Set the groupId when this directory represents
"groupId/artifactId" or "groupId/artifactId/version".
|
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 plugins when this directory represents a
"groupId" (deprecated).
|
void |
setVersion(java.lang.String version)
Set the base version (ie.
|
void |
setVersioning(Versioning versioning)
Set versioning information when this directory represents
"groupId/artifactId" or "groupId/artifactId/version".
|
private java.lang.String modelVersion
private java.lang.String groupId
private java.lang.String artifactId
private Versioning versioning
private java.lang.String version
-SNAPSHOT
) when
this directory represents a "groupId/artifactId/version" for
a SNAPSHOT.@Deprecated private java.util.List<Plugin> plugins
private java.lang.String modelEncoding
public void addPlugin(Plugin plugin)
plugin
- a plugin object.public Metadata clone()
clone
in class java.lang.Object
public java.lang.String getArtifactId()
public java.lang.String getGroupId()
public java.lang.String getModelEncoding()
public java.lang.String getModelVersion()
public java.util.List<Plugin> getPlugins()
public java.lang.String getVersion()
-SNAPSHOT
)
when this directory represents a
"groupId/artifactId/version" for a SNAPSHOT.public Versioning getVersioning()
public void removePlugin(Plugin plugin)
plugin
- a plugin object.public void setArtifactId(java.lang.String artifactId)
artifactId
- a artifactId object.public void setGroupId(java.lang.String groupId)
groupId
- a groupId object.public void setModelEncoding(java.lang.String modelEncoding)
modelEncoding
- a modelEncoding object.public void setModelVersion(java.lang.String modelVersion)
modelVersion
- a modelVersion object.public void setPlugins(java.util.List<Plugin> plugins)
plugins
- a plugins object.public void setVersion(java.lang.String version)
-SNAPSHOT
)
when this directory represents a
"groupId/artifactId/version" for a SNAPSHOT.version
- a version object.public void setVersioning(Versioning versioning)
versioning
- a versioning object.private java.lang.String getSnapshotVersionKey(SnapshotVersion sv)
public boolean merge(Metadata sourceMetadata)