public abstract class AbstractMetadata extends Object implements Metadata
Metadata.Nature| Constructor and Description | 
|---|
| AbstractMetadata() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected static Map<String,String> | copyProperties(Map<String,String> properties)Copies the specified metadata properties. | 
| boolean | equals(Object obj)Compares this metadata with the specified object. | 
| String | getProperty(String key,
                      String defaultValue)Gets the specified property. | 
| int | hashCode()Returns a hash code for 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 | toString() | 
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetArtifactId, getFile, getGroupId, getNature, getProperties, getType, getVersionpublic AbstractMetadata()
public Metadata setFile(File file)
Metadatapublic Metadata setProperties(Map<String,String> properties)
MetadatasetProperties in interface Metadataproperties - The properties for the metadata, may be null.null.public String getProperty(String key, String defaultValue)
MetadatagetProperty in interface Metadatakey - 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.protected static Map<String,String> copyProperties(Map<String,String> properties)
properties - The properties to copy, may be null.null.Copyright © 2010–2018 The Apache Software Foundation. All rights reserved.