org.deptool
Class DefaultDependencyLocator

java.lang.Object
  extended by org.deptool.ProgressNotifier
      extended by org.deptool.DefaultDependencyLocator
All Implemented Interfaces:
DependencyLocator

public class DefaultDependencyLocator
extends ProgressNotifier
implements DependencyLocator


Field Summary
 
Fields inherited from class org.deptool.ProgressNotifier
currentState, progressListeners
 
Constructor Summary
DefaultDependencyLocator()
           
DefaultDependencyLocator(java.util.Collection<DependencySource> dependencySources)
           
DefaultDependencyLocator(java.util.HashSet<Dependency> dependencies)
           
 
Method Summary
 void addDependencies(java.util.HashSet<Dependency> newDependencies)
          Adds dependencies on which this locator will operate
 java.util.Set<java.lang.String> getAllVersions(java.lang.String groupId, java.lang.String artifactId)
          returns all of the dependencies in a given group and named by the artifactId
 java.util.Set<java.lang.String> getArtifacts(java.lang.String groupId)
          returns all the artifacts in a group
 java.lang.String getCurrentVersion(java.lang.String groupId, java.lang.String artifactId)
          returns the current version of a dependency in a given group and named by the artifactId
 java.util.Set<java.lang.String> getGroupIds()
          returns all of the group ids
 java.util.Set<java.lang.String> search(java.lang.String search)
          returns all groupId's of dependencies with either a groupId, artifactictId, or a version containing the specified search string
 
Methods inherited from class org.deptool.ProgressNotifier
addProgressEventListener, fireProgressEvent, getCurrentProgress, removeProgressEventListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDependencyLocator

public DefaultDependencyLocator()

DefaultDependencyLocator

public DefaultDependencyLocator(java.util.Collection<DependencySource> dependencySources)

DefaultDependencyLocator

public DefaultDependencyLocator(java.util.HashSet<Dependency> dependencies)
Method Detail

getGroupIds

public java.util.Set<java.lang.String> getGroupIds()
Description copied from interface: DependencyLocator
returns all of the group ids

Specified by:
getGroupIds in interface DependencyLocator
Returns:

getArtifacts

public java.util.Set<java.lang.String> getArtifacts(java.lang.String groupId)
Description copied from interface: DependencyLocator
returns all the artifacts in a group

Specified by:
getArtifacts in interface DependencyLocator
Returns:

getAllVersions

public java.util.Set<java.lang.String> getAllVersions(java.lang.String groupId,
                                                      java.lang.String artifactId)
Description copied from interface: DependencyLocator
returns all of the dependencies in a given group and named by the artifactId

Specified by:
getAllVersions in interface DependencyLocator
Returns:

getCurrentVersion

public java.lang.String getCurrentVersion(java.lang.String groupId,
                                          java.lang.String artifactId)
Description copied from interface: DependencyLocator
returns the current version of a dependency in a given group and named by the artifactId

Specified by:
getCurrentVersion in interface DependencyLocator
Returns:

search

public java.util.Set<java.lang.String> search(java.lang.String search)
Description copied from interface: DependencyLocator
returns all groupId's of dependencies with either a groupId, artifactictId, or a version containing the specified search string

Specified by:
search in interface DependencyLocator
Returns:

addDependencies

public void addDependencies(java.util.HashSet<Dependency> newDependencies)
Description copied from interface: DependencyLocator
Adds dependencies on which this locator will operate

Specified by:
addDependencies in interface DependencyLocator


Copyright © 2006 . All Rights Reserved.