|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonatype.aether.util.metadata.DefaultMetadata
public final class DefaultMetadata
A basic metadata instance. Note: Instances of this class are immutable and the exposed mutators return new objects rather than changing the current instance.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.sonatype.aether.metadata.Metadata |
|---|
Metadata.Nature |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
String |
getArtifactId()
|
File |
getFile()
|
String |
getGroupId()
|
Metadata.Nature |
getNature()
|
String |
getType()
|
String |
getVersion()
|
Metadata |
setFile(File file)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public 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.| Method Detail |
|---|
public String getGroupId()
getGroupId in interface Metadatapublic String getArtifactId()
getArtifactId in interface Metadatapublic String getVersion()
getVersion in interface Metadatapublic String getType()
getType in interface Metadatapublic Metadata.Nature getNature()
getNature in interface Metadatapublic File getFile()
getFile in interface Metadatapublic Metadata setFile(File file)
setFile in interface Metadatapublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||