org.overlord.sramp.client.jar
Class DiscoveredArtifacts

java.lang.Object
  extended by org.overlord.sramp.client.jar.DiscoveredArtifacts
All Implemented Interfaces:
Iterable<DiscoveredArtifact>

public class DiscoveredArtifacts
extends Object
implements Iterable<DiscoveredArtifact>

The collection of artifacts found during the discovery process.

Author:
eric.wittmann@redhat.com

Constructor Summary
DiscoveredArtifacts()
          Constructor.
 
Method Summary
 void add(File file)
          Adds a candidate artifact to the set of collected (accepted/discovered) artifacts.
protected  Set<DiscoveredArtifact> getArtifacts()
           
 void index(File workDir)
          Indexes all of the discovered artifacts using the given directory as the base directory (for determining canonical archive paths).
 Iterator<DiscoveredArtifact> iterator()
           
protected  void setArtifacts(Set<DiscoveredArtifact> artifacts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscoveredArtifacts

public DiscoveredArtifacts()
Constructor.

Method Detail

add

public void add(File file)
Adds a candidate artifact to the set of collected (accepted/discovered) artifacts.

Parameters:
candidate -

index

public void index(File workDir)
Indexes all of the discovered artifacts using the given directory as the base directory (for determining canonical archive paths).

Parameters:
workDir -

iterator

public Iterator<DiscoveredArtifact> iterator()
Specified by:
iterator in interface Iterable<DiscoveredArtifact>
See Also:
Iterable.iterator()

getArtifacts

protected Set<DiscoveredArtifact> getArtifacts()
Returns:
the artifacts

setArtifacts

protected void setArtifacts(Set<DiscoveredArtifact> artifacts)
Parameters:
artifacts - the artifacts to set


Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.