org.apache.maven.repository.metadata
Class ArtifactMetadata

java.lang.Object
  extended by org.apache.maven.repository.metadata.ArtifactMetadata

public class ArtifactMetadata
extends Object

Artifact Metadata that is resolved independent of Artifact itself.

Author:
Oleg Gusakov

Field Summary
protected  boolean artifactExists
          does the actual artifact for this metadata exists
protected  String artifactId
           
protected  ArtifactScopeEnum artifactScope
           
protected  String artifactUri
          artifact URI
protected  String classifier
           
protected  Collection<ArtifactMetadata> dependencies
          dependencies of the artifact behind this metadata
protected  String groupId
          standard glorified artifact coordinates
protected  boolean resolved
          is metadata found anywhere
protected  String type
           
protected  String uri
          metadata URI
protected  String version
           
protected  String why
          explanation: why this MD was chosen over it's siblings in the resulting structure (classpath for now)
 
Constructor Summary
ArtifactMetadata(Artifact af)
           
ArtifactMetadata(String name)
           
ArtifactMetadata(String groupId, String name, String version)
           
ArtifactMetadata(String groupId, String name, String version, String type)
           
ArtifactMetadata(String groupId, String name, String version, String type, ArtifactScopeEnum artifactScope)
           
ArtifactMetadata(String groupId, String name, String version, String type, ArtifactScopeEnum artifactScope, String classifier)
           
ArtifactMetadata(String groupId, String name, String version, String type, ArtifactScopeEnum artifactScope, String classifier, String artifactUri)
           
ArtifactMetadata(String groupId, String name, String version, String type, ArtifactScopeEnum artifactScope, String classifier, String artifactUri, String why, boolean resolved, String error)
           
ArtifactMetadata(String groupId, String name, String version, String type, String scopeString, String classifier, String artifactUri, String why, boolean resolved, String error)
           
 
Method Summary
 String getArtifactId()
           
 ArtifactScopeEnum getArtifactScope()
           
 String getArtifactUri()
           
 String getCheckedType()
           
 String getClassifier()
           
 Collection<ArtifactMetadata> getDependencies()
           
 String getDependencyConflictId()
           
 String getError()
           
 String getGroupId()
           
 String getScope()
           
 ArtifactScopeEnum getScopeAsEnum()
           
 String getType()
           
 String getUri()
           
 String getVersion()
           
 String getWhy()
           
 boolean isArtifactExists()
           
 boolean isError()
           
 boolean isResolved()
           
 void setArtifactExists(boolean artifactExists)
           
 void setArtifactId(String name)
           
 void setArtifactScope(ArtifactScopeEnum artifactScope)
           
 void setArtifactUri(String artifactUri)
           
 void setClassifier(String classifier)
           
 void setDependencies(Collection<ArtifactMetadata> dependencies)
           
 void setError(String error)
           
 void setGroupId(String groupId)
           
 void setResolved(boolean resolved)
           
 void setScope(String scope)
           
 void setType(String type)
           
 void setUri(String uri)
           
 void setVersion(String version)
           
 void setWhy(String why)
           
 String toDomainString()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

groupId

protected String groupId
standard glorified artifact coordinates


artifactId

protected String artifactId

version

protected String version

type

protected String type

artifactScope

protected ArtifactScopeEnum artifactScope

classifier

protected String classifier

why

protected String why
explanation: why this MD was chosen over it's siblings in the resulting structure (classpath for now)


dependencies

protected Collection<ArtifactMetadata> dependencies
dependencies of the artifact behind this metadata


uri

protected String uri
metadata URI


resolved

protected boolean resolved
is metadata found anywhere


artifactExists

protected boolean artifactExists
does the actual artifact for this metadata exists


artifactUri

protected String artifactUri
artifact URI

Constructor Detail

ArtifactMetadata

public ArtifactMetadata(String name)

ArtifactMetadata

public ArtifactMetadata(String groupId,
                        String name,
                        String version)

ArtifactMetadata

public ArtifactMetadata(String groupId,
                        String name,
                        String version,
                        String type)

ArtifactMetadata

public ArtifactMetadata(String groupId,
                        String name,
                        String version,
                        String type,
                        ArtifactScopeEnum artifactScope)

ArtifactMetadata

public ArtifactMetadata(String groupId,
                        String name,
                        String version,
                        String type,
                        ArtifactScopeEnum artifactScope,
                        String classifier)

ArtifactMetadata

public ArtifactMetadata(String groupId,
                        String name,
                        String version,
                        String type,
                        ArtifactScopeEnum artifactScope,
                        String classifier,
                        String artifactUri)

ArtifactMetadata

public ArtifactMetadata(String groupId,
                        String name,
                        String version,
                        String type,
                        ArtifactScopeEnum artifactScope,
                        String classifier,
                        String artifactUri,
                        String why,
                        boolean resolved,
                        String error)

ArtifactMetadata

public ArtifactMetadata(String groupId,
                        String name,
                        String version,
                        String type,
                        String scopeString,
                        String classifier,
                        String artifactUri,
                        String why,
                        boolean resolved,
                        String error)

ArtifactMetadata

public ArtifactMetadata(Artifact af)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

toDomainString

public String toDomainString()

getGroupId

public String getGroupId()

setGroupId

public void setGroupId(String groupId)

getArtifactId

public String getArtifactId()

setArtifactId

public void setArtifactId(String name)

getVersion

public String getVersion()

setVersion

public void setVersion(String version)

getType

public String getType()

getCheckedType

public String getCheckedType()

setType

public void setType(String type)

getArtifactScope

public ArtifactScopeEnum getArtifactScope()

setArtifactScope

public void setArtifactScope(ArtifactScopeEnum artifactScope)

setScope

public void setScope(String scope)

getClassifier

public String getClassifier()

setClassifier

public void setClassifier(String classifier)

isResolved

public boolean isResolved()

setResolved

public void setResolved(boolean resolved)

getUri

public String getUri()

setUri

public void setUri(String uri)

getScope

public String getScope()

getScopeAsEnum

public ArtifactScopeEnum getScopeAsEnum()

isArtifactExists

public boolean isArtifactExists()

setArtifactExists

public void setArtifactExists(boolean artifactExists)

getDependencies

public Collection<ArtifactMetadata> getDependencies()

setDependencies

public void setDependencies(Collection<ArtifactMetadata> dependencies)

getArtifactUri

public String getArtifactUri()

setArtifactUri

public void setArtifactUri(String artifactUri)

getWhy

public String getWhy()

setWhy

public void setWhy(String why)

getError

public String getError()

setError

public void setError(String error)

isError

public boolean isError()

getDependencyConflictId

public String getDependencyConflictId()


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