org.apache.maven.repository.metadata
Class ClasspathContainer

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

public class ClasspathContainer
extends java.lang.Object
implements java.lang.Iterable<ArtifactMetadata>

classpath container that is aware of the classpath scope

Author:
Oleg Gusakov

Constructor Summary
ClasspathContainer(ArtifactScopeEnum scope)
           
ClasspathContainer(java.util.List<ArtifactMetadata> classpath, ArtifactScopeEnum scope)
           
 
Method Summary
 ClasspathContainer add(ArtifactMetadata md)
           
 java.util.List<ArtifactMetadata> getClasspath()
           
 MetadataTreeNode getClasspathAsTree()
           
 ArtifactScopeEnum getScope()
           
 java.util.Iterator<ArtifactMetadata> iterator()
           
 void setClasspath(java.util.List<ArtifactMetadata> classpath)
           
 void setScope(ArtifactScopeEnum scope)
           
 java.lang.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(java.util.List<ArtifactMetadata> classpath,
                          ArtifactScopeEnum scope)
Method Detail

iterator

public java.util.Iterator<ArtifactMetadata> iterator()
Specified by:
iterator in interface java.lang.Iterable<ArtifactMetadata>

add

public ClasspathContainer add(ArtifactMetadata md)

getClasspath

public java.util.List<ArtifactMetadata> getClasspath()

getClasspathAsTree

public MetadataTreeNode getClasspathAsTree()
                                    throws MetadataResolutionException
Throws:
MetadataResolutionException

setClasspath

public void setClasspath(java.util.List<ArtifactMetadata> classpath)

getScope

public ArtifactScopeEnum getScope()

setScope

public void setScope(ArtifactScopeEnum scope)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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