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

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

public final class MetadataBridge
extends Object
implements org.sonatype.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.sonatype.aether.metadata.Metadata
org.sonatype.aether.metadata.Metadata.Nature
 
Constructor Summary
MetadataBridge(ArtifactMetadata metadata)
           
 
Method Summary
 String getArtifactId()
           
 File getFile()
           
 String getGroupId()
           
 org.sonatype.aether.metadata.Metadata.Nature getNature()
           
 String getType()
           
 String getVersion()
           
 boolean isMerged()
           
 void merge(File current, File result)
           
 MetadataBridge setFile(File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataBridge

public MetadataBridge(ArtifactMetadata metadata)
Method Detail

merge

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

isMerged

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

getGroupId

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

getArtifactId

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

getVersion

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

getType

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

getFile

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

setFile

public MetadataBridge setFile(File file)
Specified by:
setFile in interface org.sonatype.aether.metadata.Metadata

getNature

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


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.