public abstract class DependencyTypeImpl extends Object implements DependencyType
DependencyType interface.| Modifier | Constructor and Description |
|---|---|
protected |
DependencyTypeImpl(String dependencyName,
String dependencyPackageName)
Default constructor.
|
protected |
DependencyTypeImpl(String dependencyName,
String dependencyPackageName,
ImportDependenciesCollection importDependencies,
Set<GenericDependency> parentExtensionsDependenciesSet,
Set<GenericDependency> parentImplementationsDependenciesSet,
Set<GenericDependency> annotationsDependenciesSet)
Full constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(DependencyType d) |
DependencyType |
deepClone() |
boolean |
equals(Object obj) |
static String |
generateDependencyFullName(String dependencyPackageName,
String dependencyName)
Generates the full dependency name following its package and its simple name.
|
protected abstract PlantUMLClassesDiagramElement |
generatePlantUMLClassesDiagramElement()
Generates the plantUML classes diagram element.
|
Set<GenericDependency> |
getAnnotationsDependencies()
Gets the
Set of all annotations as GenericDependency which are used by the
current dependency type. |
String |
getFullName()
Gets the dependency full name, usually the package and the dependency name.
|
ImportDependenciesCollection |
getImportDependenciesCollection()
Gets the
ImportDependenciesCollection containing all GenericDependency which
are needed by the current dependency type to work. |
String |
getName()
Gets the dependency name, usually the class name.
|
String |
getPackageName()
Gets the dependency package name.
|
Set<GenericDependency> |
getParentExtensionsDependencies()
Gets the
Set of all parent extensions as GenericDependency which are used by
the current dependency type, i.e. extended. |
Set<GenericDependency> |
getParentImplementationsDependencies()
Gets the
Set of all parent interfaces as GenericDependency which are used by
the current dependency type, i.e. implemented. |
PlantUMLClassesDiagramElement |
getPlantUMLClassesDiagramElement()
Gets the PlantUML classes diagram element describing the current dependency type in the
plantUML language.
|
Set<PlantUMLClassesDiagramRelation> |
getPlantUMLClassesDiagramRelations()
Gets the whole PlantUML classes diagram relations.
|
Set<PlantUMLClassesDiagramRelation> |
getPlantUMLClassesDiagramRelations(Set<Display> displayOptions)
Gets the PlantUML classes diagram relations, following the imports and the dependency type
parents.
|
int |
hashCode() |
void |
setFullName(String dependencyPackageName,
String dependencyName)
Sets the dependency full name, i.e. the package name and the class name.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitisDisplayableprotected DependencyTypeImpl(String dependencyName, String dependencyPackageName)
dependencyName - the dependency type name, such as "String", mustn't be null.dependencyPackageName - the dependency type package name, such as "java.lang", mustn't be
null.protected DependencyTypeImpl(String dependencyName, String dependencyPackageName, ImportDependenciesCollection importDependencies, Set<GenericDependency> parentExtensionsDependenciesSet, Set<GenericDependency> parentImplementationsDependenciesSet, Set<GenericDependency> annotationsDependenciesSet)
dependencyName - the dependency type name, such as "String", mustn't be null.dependencyPackageName - the dependency type package name, such as "java.lang", mustn't be
null.importDependencies - the ImportDependenciesCollection containing all import dependencies which
are needed by the current dependency type to work, mustn't be null.parentExtensionsDependenciesSet - the Set of all extensions as GenericDependency which are used by
the current dependency type, mustn't be null.parentImplementationsDependenciesSet - the Set of all implementations as GenericDependency which are used
by the current dependency type, mustn't be null.annotationsDependenciesSet - the Set of all annotations as GenericDependency which are used by
the current dependency type, mustn't be null.public static String generateDependencyFullName(String dependencyPackageName, String dependencyName)
dependencyPackageName - the dependency type package name, such as "java.lang", mustn't be
null but can be empty.dependencyName - the dependency type name, such as "String", mustn't be null nor
empty.public int compareTo(DependencyType d)
compareTo in interface Comparable<DependencyType>public DependencyType deepClone()
deepClone in interface net.sourceforge.plantumldependency.common.clone.DeepCloneable<DependencyType>protected abstract PlantUMLClassesDiagramElement generatePlantUMLClassesDiagramElement()
PlantUMLClassesDiagramElement containing the plantUML classes diagram
element of the current dependency type.public Set<GenericDependency> getAnnotationsDependencies()
Set of all annotations as GenericDependency which are used by the
current dependency type. If no dependencies annotations are used, it returns an empty
Set.getAnnotationsDependencies in interface DependencyTypeSet of all annotations as GenericDependency which are used by the
current dependency type.public String getFullName()
For instance, in java it can be :
java.lang.String
java.io.Serializable
sun.font.Decoration
getFullName in interface DependencyTypepublic ImportDependenciesCollection getImportDependenciesCollection()
ImportDependenciesCollection containing all GenericDependency which
are needed by the current dependency type to work.
For instance, in java it is represented by the import keyword.
getImportDependenciesCollection in interface DependencyTypeImportDependenciesCollection instance containing all
GenericDependency which are needed by the current dependency type to work.public String getName()
For instance, in java it can be :
String
Serializable
Decoration
getName in interface DependencyTypeDependencyType.setFullName(String, String)public String getPackageName()
For instance, in java it can be :
java.lang
java.io
sun.font
getPackageName in interface DependencyTypeDependencyType.setFullName(String, String)public Set<GenericDependency> getParentExtensionsDependencies()
Set of all parent extensions as GenericDependency which are used by
the current dependency type, i.e. extended. If no dependencies are extended, it returns an
empty Set.
For instance, in java it is represented by the extends keyword.
getParentExtensionsDependencies in interface DependencyTypeSet of all parent extensions as GenericDependency which are used
by the current dependency type.public Set<GenericDependency> getParentImplementationsDependencies()
Set of all parent interfaces as GenericDependency which are used by
the current dependency type, i.e. implemented. If no dependencies interfaces are implemented,
it returns an empty Set.
For instance, in java it is represented by the implements keyword.
getParentImplementationsDependencies in interface DependencyTypeSet of all parent interfaces as GenericDependency which are used
by the current dependency type.public PlantUMLClassesDiagramElement getPlantUMLClassesDiagramElement()
getPlantUMLClassesDiagramElement in interface DependencyTypePlantUMLClassesDiagramElement
instance describing the current dependency type.public Set<PlantUMLClassesDiagramRelation> getPlantUMLClassesDiagramRelations()
getPlantUMLClassesDiagramRelations in interface DependencyTypeSet of
PlantUMLClassesDiagramRelation instances describing relations to imports and
the dependency type parents.public Set<PlantUMLClassesDiagramRelation> getPlantUMLClassesDiagramRelations(Set<Display> displayOptions)
getPlantUMLClassesDiagramRelations in interface DependencyTypedisplayOptions - the Set of all displays options to display the PlantUML classes diagram
relations, mustn't be null.Set of
PlantUMLClassesDiagramRelation instances describing relations to imports and
the dependency type parents.public void setFullName(String dependencyPackageName, String dependencyName)
For instance, in java it can be :
String
Serializable
Decoration
setFullName in interface DependencyTypedependencyPackageName - the new package name to set, may be null.dependencyName - the dependency name to set, mustn't be null.DependencyType.getName(),
DependencyType.getPackageName()Copyright © 2014 Sourceforge. All rights reserved.