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 |
---|---|
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 |
getProperty(String key,
String defaultValue)
Gets the specified property.
|
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.
|
Metadata |
setProperties(Map<String,String> properties)
Sets the properties for the metadata.
|
String getGroupId()
null
.String getArtifactId()
null
.String getVersion()
null
.String getType()
null
.Metadata.Nature getNature()
null
.File getFile()
null
if none.Metadata setFile(File file)
file
- The file of the metadata, may be null
null
.String getProperty(String key, 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.Map<String,String> getProperties()
null
.Metadata setProperties(Map<String,String> properties)
properties
- The properties for the metadata, may be null
.null
.Copyright © 2010–2019 The Apache Software Foundation. All rights reserved.