public interface Metadata
AbstractMetadata instead of
directly implementing this interface.| Modifier and Type | Interface and Description |
|---|---|
static class |
Metadata.Nature
The nature of the metadata.
|
| Modifier and Type | Method and Description |
|---|---|
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.util.Map<java.lang.String,java.lang.String> |
getProperties()
Gets the properties of this metadata.
|
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
Gets the specified property.
|
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.
|
Metadata |
setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Sets the properties for the metadata.
|
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 nullnull.java.lang.String getProperty(java.lang.String key,
java.lang.String defaultValue)
key - The name of the property, must not be null.defaultValue - The default value to return in case the property is not set, may be null.null if the property is not set and no default value was
provided.java.util.Map<java.lang.String,java.lang.String> getProperties()
null.Metadata setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
properties - The properties for the metadata, may be null.null.