org.apache.maven.repository.metadata
Class ClasspathContainer

java.lang.Object
  extended by org.apache.maven.repository.metadata.ClasspathContainer
All Implemented Interfaces:
Iterable<ArtifactMetadata>

public class ClasspathContainer
extends Object
implements Iterable<ArtifactMetadata>

classpath container that is aware of the classpath scope

Author:
Oleg Gusakov

Constructor Summary
ClasspathContainer(ArtifactScopeEnum scope)
           
ClasspathContainer(List<ArtifactMetadata> classpath, ArtifactScopeEnum scope)
           
 
Method Summary
 ClasspathContainer add(ArtifactMetadata md)
           
 List<ArtifactMetadata> getClasspath()
           
 MetadataTreeNode getClasspathAsTree()
           
 ArtifactScopeEnum getScope()
           
 Iterator<ArtifactMetadata> iterator()
           
 void setClasspath(List<ArtifactMetadata> classpath)
           
 void setScope(ArtifactScopeEnum scope)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClasspathContainer

public ClasspathContainer(ArtifactScopeEnum scope)

ClasspathContainer

public ClasspathContainer(List<ArtifactMetadata> classpath,
                          ArtifactScopeEnum scope)
Method Detail

iterator

public Iterator<ArtifactMetadata> iterator()
Specified by:
iterator in interface Iterable<ArtifactMetadata>

add

public ClasspathContainer add(ArtifactMetadata md)

getClasspath

public List<ArtifactMetadata> getClasspath()

getClasspathAsTree

public MetadataTreeNode getClasspathAsTree()
                                    throws MetadataResolutionException
Throws:
MetadataResolutionException

setClasspath

public void setClasspath(List<ArtifactMetadata> classpath)

getScope

public ArtifactScopeEnum getScope()

setScope

public void setScope(ArtifactScopeEnum scope)

toString

public String toString()
Overrides:
toString in class Object


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