org.apache.maven.repository.metadata
Class ClasspathContainer
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ClasspathContainer
public ClasspathContainer(ArtifactScopeEnum scope)
ClasspathContainer
public ClasspathContainer(java.util.List<ArtifactMetadata> classpath,
ArtifactScopeEnum scope)
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.