|
||||||||||
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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.sonatype.aether.metadata.Metadata |
---|
Metadata.Nature |
Constructor Summary | |
---|---|
DefaultMetadata(String type,
Metadata.Nature nature)
|
|
DefaultMetadata(String groupId,
String type,
Metadata.Nature nature)
|
|
DefaultMetadata(String groupId,
String artifactId,
String type,
Metadata.Nature nature)
|
|
DefaultMetadata(String groupId,
String artifactId,
String version,
String type,
Metadata.Nature nature)
|
|
DefaultMetadata(String groupId,
String artifactId,
String version,
String type,
Metadata.Nature nature,
File file)
|
Method Summary | |
---|---|
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. |
String |
getType()
Gets the type of the metadata, e.g. |
String |
getVersion()
Gets the version of this metadata. |
Metadata |
setFile(File file)
Sets the file of the metadata. |
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)
public DefaultMetadata(String groupId, String type, Metadata.Nature nature)
public DefaultMetadata(String groupId, String artifactId, String type, Metadata.Nature nature)
public DefaultMetadata(String groupId, String artifactId, String version, String type, Metadata.Nature nature)
public DefaultMetadata(String groupId, String artifactId, String version, String type, Metadata.Nature nature, File file)
Method Detail |
---|
public String getGroupId()
Metadata
getGroupId
in interface Metadata
null
.public String getArtifactId()
Metadata
getArtifactId
in interface Metadata
null
.public String getVersion()
Metadata
getVersion
in interface Metadata
null
.public String getType()
Metadata
getType
in interface Metadata
null
.public Metadata.Nature getNature()
Metadata
getNature
in interface Metadata
null
.public File getFile()
Metadata
getFile
in interface Metadata
null
if none.public Metadata setFile(File file)
Metadata
setFile
in interface Metadata
file
- The file of the metadata, may be null
null
.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |