public class Metadata extends Object implements Serializable, Cloneable
| Constructor and Description | 
|---|
| Metadata() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addPlugin(Plugin plugin)Method addPlugin. | 
| Metadata | clone()Method clone. | 
| String | getArtifactId()Get the artifactId when this directory represents
 "groupId/artifactId" or "groupId/artifactId/version". | 
| String | getGroupId()Get the groupId when this directory represents
 "groupId/artifactId" or "groupId/artifactId/version". | 
| 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 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(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" (deprecated). | 
| 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". | 
public void addPlugin(Plugin plugin)
plugin - public String getArtifactId()
public String getGroupId()
public String getModelEncoding()
public String getModelVersion()
public String getVersion()
-SNAPSHOT)
 when this directory represents a
 "groupId/artifactId/version" for a SNAPSHOT.public Versioning getVersioning()
public void removePlugin(Plugin plugin)
plugin - public void setArtifactId(String artifactId)
artifactId - public void setGroupId(String groupId)
groupId - public void setModelEncoding(String modelEncoding)
modelEncoding - public void setModelVersion(String modelVersion)
modelVersion - public void setPlugins(List<Plugin> plugins)
plugins - public void setVersion(String version)
-SNAPSHOT)
 when this directory represents a
 "groupId/artifactId/version" for a SNAPSHOT.version - public void setVersioning(Versioning versioning)
versioning - public boolean merge(Metadata sourceMetadata)
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.