File |
Line |
net\sourceforge\plantumldependency\cli\plantumldiagram\classes\element\impl\PlantUMLClassesDiagramAnnotationElementImpl.java |
104 |
net\sourceforge\plantumldependency\cli\plantumldiagram\classes\element\impl\PlantUMLClassesDiagramClassElementImpl.java |
122 |
net\sourceforge\plantumldependency\cli\plantumldiagram\classes\element\impl\PlantUMLClassesDiagramEnumElementImpl.java |
103 |
net\sourceforge\plantumldependency\cli\plantumldiagram\classes\element\impl\PlantUMLClassesDiagramInterfaceElementImpl.java |
104 |
final PlantUMLClassesDiagramAnnotationElementImpl other = (PlantUMLClassesDiagramAnnotationElementImpl) obj;
if (stereotype == null) {
if (other.stereotype != null) {
return false;
}
} else if (!stereotype.equals(other.stereotype)) {
return false;
}
return true;
}
/**
* {@inheritDoc}
*
* @since 1.2.0
*/
@Override
protected String getAdditionalPlantUMLTextDescription() {
return getStereotype() != null ? getStereotype().getPlantUMLTextDescription() : BLANK_STRING;
}
/**
* {@inheritDoc}
*
* @since 1.2.0
*/
@Override
public PlantUMLStereotype getStereotype() {
return stereotype;
}
/**
* {@inheritDoc}
*
* @since 1.2.0
*/
@Override
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
result = prime * result + ((stereotype == null) ? 0 : stereotype.hashCode());
return result;
}
/**
* {@inheritDoc}
*
* @since 1.2.0
*/
@Override
public String toString() {
return getClass().getSimpleName() + " [" + super.toString() + ",stereotype=" + stereotype + "]";
}
} |
File |
Line |
net\sourceforge\plantumldependency\cli\main\option\programminglanguage\argument\java\type\AnnotationJavaType.java |
69 |
net\sourceforge\plantumldependency\cli\main\option\programminglanguage\argument\java\type\EnumJavaType.java |
78 |
net\sourceforge\plantumldependency\cli\main\option\programminglanguage\argument\java\type\InterfaceJavaType.java |
76 |
protected AnnotationJavaType(final String programmingLanguageKeyword) {
super(programmingLanguageKeyword);
}
/**
* {@inheritDoc}
*
* @since 1.2.0
*/
@Override
public DependencyType createAnnotationDependencyType(final String annotationName, final String annotationPackageName)
throws PlantUMLDependencyException {
checkNull(annotationName, JAVA_ANNOTATION_TYPE_NAME_NULL_ERROR);
checkNull(annotationPackageName, JAVA_ANNOTATION_TYPE_PACKAGE_NAME_NULL_ERROR);
return new AnnotationDependencyTypeImpl(annotationName, annotationPackageName);
}
/**
* {@inheritDoc}
*
* @since 1.2.0
*/
@Override
public DependencyType createDependencyType(final String dependencyName, final String dependencyPackageName,
final boolean isAbstract, final ImportDependenciesCollection importDependencies,
final Set < GenericDependency > parentExtensionsDependencies,
final Set < GenericDependency > parentImplementationsDependencies,
final Set < GenericDependency > annotationDependencies) {
checkNull(dependencyName, JAVA_TYPE_NAME_NULL_ERROR);
checkNull(dependencyPackageName, JAVA_TYPE_PACKAGE_NAME_NULL_ERROR);
checkNull(importDependencies, JAVA_TYPE_IMPORTS_NULL_ERROR);
checkNull(parentImplementationsDependencies, JAVA_TYPE_IMPLEMENTATIONS_NULL_ERROR);
checkNull(parentExtensionsDependencies, JAVA_TYPE_EXTENTIONS_NULL_ERROR);
checkNull(annotationDependencies, JAVA_TYPE_ANNOTATIONS_NULL_ERROR);
return new AnnotationDependencyTypeImpl(dependencyName, dependencyPackageName, importDependencies, |
File |
Line |
net\sourceforge\plantumldependency\cli\main\option\programminglanguage\argument\java\type\AnnotationJavaType.java |
69 |
net\sourceforge\plantumldependency\cli\main\option\programminglanguage\argument\java\type\ClassJavaType.java |
78 |
net\sourceforge\plantumldependency\cli\main\option\programminglanguage\argument\java\type\EnumJavaType.java |
78 |
net\sourceforge\plantumldependency\cli\main\option\programminglanguage\argument\java\type\InterfaceJavaType.java |
76 |
protected AnnotationJavaType(final String programmingLanguageKeyword) {
super(programmingLanguageKeyword);
}
/**
* {@inheritDoc}
*
* @since 1.2.0
*/
@Override
public DependencyType createAnnotationDependencyType(final String annotationName, final String annotationPackageName)
throws PlantUMLDependencyException {
checkNull(annotationName, JAVA_ANNOTATION_TYPE_NAME_NULL_ERROR);
checkNull(annotationPackageName, JAVA_ANNOTATION_TYPE_PACKAGE_NAME_NULL_ERROR);
return new AnnotationDependencyTypeImpl(annotationName, annotationPackageName);
}
/**
* {@inheritDoc}
*
* @since 1.2.0
*/
@Override
public DependencyType createDependencyType(final String dependencyName, final String dependencyPackageName,
final boolean isAbstract, final ImportDependenciesCollection importDependencies,
final Set < GenericDependency > parentExtensionsDependencies,
final Set < GenericDependency > parentImplementationsDependencies,
final Set < GenericDependency > annotationDependencies) {
checkNull(dependencyName, JAVA_TYPE_NAME_NULL_ERROR);
checkNull(dependencyPackageName, JAVA_TYPE_PACKAGE_NAME_NULL_ERROR);
checkNull(importDependencies, JAVA_TYPE_IMPORTS_NULL_ERROR);
checkNull(parentImplementationsDependencies, JAVA_TYPE_IMPLEMENTATIONS_NULL_ERROR);
checkNull(parentExtensionsDependencies, JAVA_TYPE_EXTENTIONS_NULL_ERROR); |
File |
Line |
net\sourceforge\plantumldependency\cli\generic\type\impl\classimpl\ClassDependencyTypeImpl.java |
104 |
net\sourceforge\plantumldependency\cli\generic\type\impl\stubimpl\StubDependencyTypeImpl.java |
61 |
}, parentImplementationsDependenciesSet, annotationsDependenciesSet);
}
/**
* {@inheritDoc}
*
* @since 1.1.1
*/
@Override
protected PlantUMLClassesDiagramElement generatePlantUMLClassesDiagramElement() {
return new PlantUMLClassesDiagramClassElementImpl(getFullName());
}
/**
* {@inheritDoc}
*
* @since 1.1.1
*/
@Override
public boolean isDisplayable(final Set < DisplayType > displayTypesOptions,
final Pattern displayPackageNamePattern, final Pattern displayNamePattern) {
return displayTypesOptions.contains(CLASSES)
&& displayPackageNamePattern.matcher(getPackageName()).matches()
&& displayNamePattern.matcher(getName()).matches();
}
/**
* {@inheritDoc}
*
* @since 1.0.0
*/
@Override
public String toString() {
return getClass().getSimpleName() + " [" + super.toString() + "]";
}
} |