org.apache.maven.artifact.repository.metadata
Class MetadataBridge

java.lang.Object
  extended by org.eclipse.aether.metadata.AbstractMetadata
      extended by org.apache.maven.artifact.repository.metadata.MetadataBridge
All Implemented Interfaces:
org.eclipse.aether.metadata.MergeableMetadata, org.eclipse.aether.metadata.Metadata

public final class MetadataBridge
extends org.eclipse.aether.metadata.AbstractMetadata
implements org.eclipse.aether.metadata.MergeableMetadata

Warning: This is an internal utility class that is only public for technical reasons, it is not part of the public API. In particular, this class can be changed or deleted without prior notice.

Author:
Benjamin Bentmann

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.aether.metadata.Metadata
org.eclipse.aether.metadata.Metadata.Nature
 
Constructor Summary
MetadataBridge(ArtifactMetadata metadata)
           
 
Method Summary
 String getArtifactId()
           
 File getFile()
           
 String getGroupId()
           
 org.eclipse.aether.metadata.Metadata.Nature getNature()
           
 Map<String,String> getProperties()
           
 String getType()
           
 String getVersion()
           
 boolean isMerged()
           
 void merge(File current, File result)
           
 MetadataBridge setFile(File file)
           
 org.eclipse.aether.metadata.Metadata setProperties(Map<String,String> properties)
           
 
Methods inherited from class org.eclipse.aether.metadata.AbstractMetadata
copyProperties, equals, getProperty, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.aether.metadata.Metadata
getProperty
 

Constructor Detail

MetadataBridge

public MetadataBridge(ArtifactMetadata metadata)
Method Detail

merge

public void merge(File current,
                  File result)
           throws org.eclipse.aether.RepositoryException
Specified by:
merge in interface org.eclipse.aether.metadata.MergeableMetadata
Throws:
org.eclipse.aether.RepositoryException

isMerged

public boolean isMerged()
Specified by:
isMerged in interface org.eclipse.aether.metadata.MergeableMetadata

getGroupId

public String getGroupId()
Specified by:
getGroupId in interface org.eclipse.aether.metadata.Metadata

getArtifactId

public String getArtifactId()
Specified by:
getArtifactId in interface org.eclipse.aether.metadata.Metadata

getVersion

public String getVersion()
Specified by:
getVersion in interface org.eclipse.aether.metadata.Metadata

getType

public String getType()
Specified by:
getType in interface org.eclipse.aether.metadata.Metadata

getFile

public File getFile()
Specified by:
getFile in interface org.eclipse.aether.metadata.Metadata

setFile

public MetadataBridge setFile(File file)
Specified by:
setFile in interface org.eclipse.aether.metadata.Metadata
Overrides:
setFile in class org.eclipse.aether.metadata.AbstractMetadata

getNature

public org.eclipse.aether.metadata.Metadata.Nature getNature()
Specified by:
getNature in interface org.eclipse.aether.metadata.Metadata

getProperties

public Map<String,String> getProperties()
Specified by:
getProperties in interface org.eclipse.aether.metadata.Metadata

setProperties

public org.eclipse.aether.metadata.Metadata setProperties(Map<String,String> properties)
Specified by:
setProperties in interface org.eclipse.aether.metadata.Metadata
Overrides:
setProperties in class org.eclipse.aether.metadata.AbstractMetadata


Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.