org.apache.maven.repository.metadata
Class ClasspathContainer
java.lang.Object
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
ClasspathContainer
public ClasspathContainer(ArtifactScopeEnum scope)
ClasspathContainer
public ClasspathContainer(List<ArtifactMetadata> classpath,
ArtifactScopeEnum scope)
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.