public String toString() { StringBuffer s = new StringBuffer(); for (ModuleDefinition moduleDef : findAll()) { s.append(moduleDef.getName()).append(":"); } return s.toString(); }
public String toString() { StringBuffer s = new StringBuffer(); for (ModuleDefinition moduleDef : findAll()) { s.append(moduleDef.getName()).append(":"); } return s.toString(); }
/** * Finds and returns a list of all the available versions of a * module given its name. * @param name the requested module name */ public List<ModuleDefinition> findAll(String name) { List<ModuleDefinition> matchingDefs = new ArrayList<ModuleDefinition>(); for (ModuleDefinition moduleDef : findAll()) { if (moduleDef.getName().equals(name)) { matchingDefs.add(moduleDef); } } return matchingDefs; }
/** * Finds and returns a list of all the available versions of a * module given its name. * @param name the requested module name */ public List<ModuleDefinition> findAll(String name) { List<ModuleDefinition> matchingDefs = new ArrayList<ModuleDefinition>(); for (ModuleDefinition moduleDef : findAll()) { if (moduleDef.getName().equals(name)) { matchingDefs.add(moduleDef); } } return matchingDefs; }
/** * Finds and returns a <code>DefaultModuleDefinition</code> instance * for a module given the name and version constraints. * @param name the requested module name * @param version the requestion module version * @return a <code>DefaultModuleDefinition</code> or null if not found * in this repository. */ public ModuleDefinition find(String name, String version) { for (ModuleDefinition moduleDef : findAll()) { // so far we ignore the module version... if (moduleDef.getName().equals(name)) { return moduleDef; } } return null; }
/** * Finds and returns a <code>DefaultModuleDefinition</code> instance * for a module given the name and version constraints. * @param name the requested module name * @param version the requestion module version * @return a <code>DefaultModuleDefinition</code> or null if not found * in this repository. */ public ModuleDefinition find(String name, String version) { for (ModuleDefinition moduleDef : findAll()) { // so far we ignore the module version... if (moduleDef.getName().equals(name)) { return moduleDef; } } return null; }