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

java.lang.Object
  extended by org.apache.maven.artifact.repository.metadata.AbstractRepositoryMetadata
      extended by org.apache.maven.artifact.repository.metadata.SnapshotArtifactRepositoryMetadata
All Implemented Interfaces:
RepositoryMetadata, ArtifactMetadata

public class SnapshotArtifactRepositoryMetadata
extends AbstractRepositoryMetadata

Metadata for the artifact version directory of the repository.

Author:
Brett Porter

Field Summary
 
Fields inherited from interface org.apache.maven.artifact.repository.metadata.RepositoryMetadata
RELEASE, RELEASE_OR_SNAPSHOT, SNAPSHOT
 
Constructor Summary
SnapshotArtifactRepositoryMetadata(Artifact artifact)
           
SnapshotArtifactRepositoryMetadata(Artifact artifact, Snapshot snapshot)
           
 
Method Summary
 String getArtifactId()
           
 String getBaseVersion()
           
 String getGroupId()
           
 Object getKey()
           
 int getNature()
           
 ArtifactRepository getRepository()
           
 boolean isSnapshot()
           
 void setRepository(ArtifactRepository remoteRepository)
           
 boolean storedInArtifactVersionDirectory()
           
 boolean storedInGroupDirectory()
           
 
Methods inherited from class org.apache.maven.artifact.repository.metadata.AbstractRepositoryMetadata
createMetadata, createVersioning, extendedToString, getLocalFilename, getMetadata, getPolicy, getRemoteFilename, merge, merge, setMetadata, storeInLocalRepository, toString, updateRepositoryMetadata
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnapshotArtifactRepositoryMetadata

public SnapshotArtifactRepositoryMetadata(Artifact artifact)

SnapshotArtifactRepositoryMetadata

public SnapshotArtifactRepositoryMetadata(Artifact artifact,
                                          Snapshot snapshot)
Method Detail

storedInGroupDirectory

public boolean storedInGroupDirectory()

storedInArtifactVersionDirectory

public boolean storedInArtifactVersionDirectory()

getGroupId

public String getGroupId()

getArtifactId

public String getArtifactId()

getBaseVersion

public String getBaseVersion()

getKey

public Object getKey()

isSnapshot

public boolean isSnapshot()

getNature

public int getNature()
Specified by:
getNature in interface RepositoryMetadata
Overrides:
getNature in class AbstractRepositoryMetadata

getRepository

public ArtifactRepository getRepository()

setRepository

public void setRepository(ArtifactRepository remoteRepository)


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