|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Metadata
A piece of repository metadata, e.g. an index of available versions. In contrast to an artifact, which usually exists in only one repository, metadata usually exists in multiple repositories and each repository contains a different copy of the metadata. Note: Metadata instances are supposed to be immutable, e.g. any exposed mutator method returns a new metadata instance and leaves the original instance unchanged. Implementors are strongly advised to obey this contract.
Nested Class Summary | |
---|---|
static class |
Metadata.Nature
The nature of the metadata. |
Method Summary | |
---|---|
java.lang.String |
getArtifactId()
Gets the artifact identifier of this metadata. |
java.io.File |
getFile()
Gets the file of this metadata. |
java.lang.String |
getGroupId()
Gets the group identifier of this metadata. |
Metadata.Nature |
getNature()
Gets the nature of this metadata. |
java.lang.String |
getType()
Gets the type of the metadata, e.g. |
java.lang.String |
getVersion()
Gets the version of this metadata. |
Metadata |
setFile(java.io.File file)
Sets the file of the metadata. |
Method Detail |
---|
java.lang.String getGroupId()
null
.java.lang.String getArtifactId()
null
.java.lang.String getVersion()
null
.java.lang.String getType()
null
.Metadata.Nature getNature()
null
.java.io.File getFile()
null
if none.Metadata setFile(java.io.File file)
file
- The file of the metadata, may be null
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |