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
-
-
Constructor Summary
Constructors Constructor Description ClasspathContainer(List<ArtifactMetadata> classpath, ArtifactScopeEnum scope)
ClasspathContainer(ArtifactScopeEnum scope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
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 interfaceIterable<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)
-
-