public final class DefaultMetadata extends AbstractMetadata
Metadata.Nature| Constructor and Description | 
|---|
DefaultMetadata(String type,
               Metadata.Nature nature)
Creates a new metadata for the repository root with the specific type and nature. 
 | 
DefaultMetadata(String groupId,
               String type,
               Metadata.Nature nature)
Creates a new metadata for the groupId level with the specific type and nature. 
 | 
DefaultMetadata(String groupId,
               String artifactId,
               String type,
               Metadata.Nature nature)
Creates a new metadata for the groupId:artifactId level with the specific type and nature. 
 | 
DefaultMetadata(String groupId,
               String artifactId,
               String version,
               String type,
               Metadata.Nature nature)
Creates a new metadata for the groupId:artifactId:version level with the specific type and nature. 
 | 
DefaultMetadata(String groupId,
               String artifactId,
               String version,
               String type,
               Metadata.Nature nature,
               File file)
Creates a new metadata for the groupId:artifactId:version level with the specific type and nature. 
 | 
DefaultMetadata(String groupId,
               String artifactId,
               String version,
               String type,
               Metadata.Nature nature,
               Map<String,String> properties,
               File file)
Creates a new metadata for the groupId:artifactId:version level with the specific type and nature. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getArtifactId()
Gets the artifact identifier of this metadata. 
 | 
File | 
getFile()
Gets the file of this metadata. 
 | 
String | 
getGroupId()
Gets the group identifier of this metadata. 
 | 
Metadata.Nature | 
getNature()
Gets the nature of this metadata. 
 | 
Map<String,String> | 
getProperties()
Gets the properties of this metadata. 
 | 
String | 
getType()
Gets the type of the metadata, e.g. 
 | 
String | 
getVersion()
Gets the version of this metadata. 
 | 
copyProperties, equals, getProperty, hashCode, setFile, setProperties, toStringpublic DefaultMetadata(String type, Metadata.Nature nature)
type - The type of the metadata, e.g. "maven-metadata.xml", may be null.nature - The nature of the metadata, must not be null.public DefaultMetadata(String groupId, String type, Metadata.Nature nature)
groupId - The group identifier to which this metadata applies, may be null.type - The type of the metadata, e.g. "maven-metadata.xml", may be null.nature - The nature of the metadata, must not be null.public DefaultMetadata(String groupId, String artifactId, String type, Metadata.Nature nature)
groupId - The group identifier to which this metadata applies, may be null.artifactId - The artifact identifier to which this metadata applies, may be null.type - The type of the metadata, e.g. "maven-metadata.xml", may be null.nature - The nature of the metadata, must not be null.public DefaultMetadata(String groupId, String artifactId, String version, String type, Metadata.Nature nature)
groupId - The group identifier to which this metadata applies, may be null.artifactId - The artifact identifier to which this metadata applies, may be null.version - The version to which this metadata applies, may be null.type - The type of the metadata, e.g. "maven-metadata.xml", may be null.nature - The nature of the metadata, must not be null.public DefaultMetadata(String groupId, String artifactId, String version, String type, Metadata.Nature nature, File file)
groupId - The group identifier to which this metadata applies, may be null.artifactId - The artifact identifier to which this metadata applies, may be null.version - The version to which this metadata applies, may be null.type - The type of the metadata, e.g. "maven-metadata.xml", may be null.nature - The nature of the metadata, must not be null.file - The resolved file of the metadata, may be null.public DefaultMetadata(String groupId, String artifactId, String version, String type, Metadata.Nature nature, Map<String,String> properties, File file)
groupId - The group identifier to which this metadata applies, may be null.artifactId - The artifact identifier to which this metadata applies, may be null.version - The version to which this metadata applies, may be null.type - The type of the metadata, e.g. "maven-metadata.xml", may be null.nature - The nature of the metadata, must not be null.properties - The properties of the metadata, may be null if none.file - The resolved file of the metadata, may be null.public String getGroupId()
Metadatanull.public String getArtifactId()
Metadatanull.public String getVersion()
Metadatanull.public String getType()
Metadatanull.public Metadata.Nature getNature()
Metadatanull.public File getFile()
Metadatanull if none.public Map<String,String> getProperties()
Metadatanull.Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.