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

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

public final class MetadataBridge
extends Object
implements 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
Metadata.Nature
 
Constructor Summary
MetadataBridge(ArtifactMetadata metadata)
           
 
Method Summary
 String getArtifactId()
           
 File getFile()
           
 String getGroupId()
           
 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 RepositoryException
Specified by:
merge in interface MergeableMetadata
Throws:
RepositoryException

isMerged

public boolean isMerged()
Specified by:
isMerged in interface MergeableMetadata

getGroupId

public String getGroupId()
Specified by:
getGroupId in interface Metadata

getArtifactId

public String getArtifactId()
Specified by:
getArtifactId in interface Metadata

getVersion

public String getVersion()
Specified by:
getVersion in interface Metadata

getType

public String getType()
Specified by:
getType in interface Metadata

getFile

public File getFile()
Specified by:
getFile in interface Metadata

setFile

public MetadataBridge setFile(File file)
Specified by:
setFile in interface Metadata

getNature

public Metadata.Nature getNature()
Specified by:
getNature in interface Metadata


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