Package org.eclipse.aether.metadata
Class AbstractMetadata
java.lang.Object
org.eclipse.aether.metadata.AbstractMetadata
- All Implemented Interfaces:
- Metadata
- Direct Known Subclasses:
- DefaultMetadata
A skeleton class for metadata.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.eclipse.aether.metadata.MetadataMetadata.Nature
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncopyProperties(Map<String, String> properties) Copies the specified metadata properties.booleanCompares this metadata with the specified object.getProperty(String key, String defaultValue) Gets the specified property.inthashCode()Returns a hash code for this metadata.Sets the file of the metadata.setProperties(Map<String, String> properties) Sets the properties for the metadata.toString()Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.aether.metadata.MetadatagetArtifactId, getFile, getGroupId, getNature, getProperties, getType, getVersion
- 
Constructor Details- 
AbstractMetadatapublic AbstractMetadata()
 
- 
- 
Method Details- 
setFileDescription copied from interface:MetadataSets the file of the metadata.
- 
setPropertiesDescription copied from interface:MetadataSets the properties for the metadata.- Specified by:
- setPropertiesin interface- Metadata
- Parameters:
- properties- The properties for the metadata, may be- null.
- Returns:
- The new metadata, never null.
 
- 
getPropertyDescription copied from interface:MetadataGets the specified property.- Specified by:
- getPropertyin interface- Metadata
- Parameters:
- 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.
- Returns:
- The requested property value or nullif the property is not set and no default value was provided.
 
- 
copyPropertiesCopies the specified metadata properties. This utility method should be used when creating new metadata instances with caller-supplied properties.- Parameters:
- properties- The properties to copy, may be- null.
- Returns:
- The copied and read-only properties, never null.
 
- 
toString
- 
equalsCompares this metadata with the specified object.
- 
hashCodeReturns a hash code for this metadata.
 
-