public class ImportDependenciesCollectionImpl extends Object implements ImportDependenciesCollection
ImportDependenciesCollection interface.| Constructor and Description |
|---|
ImportDependenciesCollectionImpl()
Default constructor.
|
ImportDependenciesCollectionImpl(ImportType importType,
Set<GenericDependency> dependenciesSet)
Medium constructor.
|
ImportDependenciesCollectionImpl(Map<ImportType,Set<GenericDependency>> dependenciesMap)
Medium constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addImportDependencies(ImportType importType,
GenericDependency importDependency)
Add an import dependency to the collection, with its type.
|
void |
addImportDependenciesSet(ImportType importType,
Set<GenericDependency> importDependenciesSet)
Add a
Set of several import dependencies to the collection, with their type. |
ImportDependenciesCollection |
deepClone() |
boolean |
equals(Object obj) |
GenericDependency |
findDependency(String dependencyName)
Finds the dependency following its name in the collection. be careful, this method doesn't
take care of the package name.
|
GenericDependency |
findDependency(String dependencyName,
String dependencyPackageName)
Finds the dependency following its name and its package name in the collection.
|
Set<GenericDependency> |
getAllImportDependencies()
Gets the
Set of all GenericDependency which are needed by the current
dependency type to work. |
Set<GenericDependency> |
getImportDependenciesWithType(ImportType importType)
Gets the
Set of GenericDependency which are needed by the current dependency
type to work and have the following type. |
Set<GenericDependency> |
getImportDependenciesWithTypes(Set<ImportType> importTypesSet)
Gets the
Set of GenericDependency which are needed by the current dependency
type to work and have one of the following type contained in the Set. |
int |
hashCode() |
String |
toString() |
public ImportDependenciesCollectionImpl()
public ImportDependenciesCollectionImpl(ImportType importType, Set<GenericDependency> dependenciesSet)
importType - the import type ImportType instance, mustn't be null.dependenciesSet - the Set containing import GenericDependency instances, mustn't be
null.public ImportDependenciesCollectionImpl(Map<ImportType,Set<GenericDependency>> dependenciesMap)
dependenciesMap - the Map of all GenericDependency which are needed by the current
dependency type to work. It has ImportType as keys and the Set of
import dependencies as values, mustn't be null.public void addImportDependencies(ImportType importType, GenericDependency importDependency)
addImportDependencies in interface ImportDependenciesCollectionimportType - the import dependency ImportType instance, mustn't be null.importDependency - the GenericDependency instance, mustn't be null.public void addImportDependenciesSet(ImportType importType, Set<GenericDependency> importDependenciesSet)
Set of several import dependencies to the collection, with their type.addImportDependenciesSet in interface ImportDependenciesCollectionimportType - the import type ImportType instance, mustn't be null.importDependenciesSet - the Set containing import GenericDependency instances, mustn't be
null.public ImportDependenciesCollection deepClone()
deepClone in interface net.sourceforge.plantumldependency.common.clone.DeepCloneable<ImportDependenciesCollection>public GenericDependency findDependency(String dependencyName)
findDependency in interface ImportDependenciesCollectiondependencyName - the dependency name to look for, mustn't be null.GenericDependency instance associated to the passed name if found in the
import import collection, null otherwise.public GenericDependency findDependency(String dependencyName, String dependencyPackageName)
findDependency in interface ImportDependenciesCollectiondependencyName - the dependency name to look for, mustn't be null.dependencyPackageName - the dependency package name to look for, mustn't be null.GenericDependency instance associated to the passed name and package name
if found in the import collection, null otherwise.public Set<GenericDependency> getAllImportDependencies()
Set of all GenericDependency which are needed by the current
dependency type to work. If no dependencies are needed, it returns an empty Set.
For instance, in java it is represented by the import keyword.
getAllImportDependencies in interface ImportDependenciesCollectionSet of all GenericDependency which are needed by the current
dependency type to work.public Set<GenericDependency> getImportDependenciesWithType(ImportType importType)
Set of GenericDependency which are needed by the current dependency
type to work and have the following type. If no dependencies are needed with this type, it
returns an empty Set.
For instance, in java it is represented by the import keyword.
getImportDependenciesWithType in interface ImportDependenciesCollectionimportType - the import type to look for, mustn't be null.Set of GenericDependency which are needed by the current
dependency type to work and have the following types.public Set<GenericDependency> getImportDependenciesWithTypes(Set<ImportType> importTypesSet)
Set of GenericDependency which are needed by the current dependency
type to work and have one of the following type contained in the Set. If no
dependencies are needed with these types, it returns an empty Set.
For instance, in java it is represented by the import keyword.
getImportDependenciesWithTypes in interface ImportDependenciesCollectionimportTypesSet - the Set of all import types to look for, mustn't be null.Set of all GenericDependency which are needed by the current
dependency type to work.Copyright © 2014 Sourceforge. All rights reserved.