* @return the type, or null, if the artifact definition has no type or
* an invalid type.
*/
public ImplementationArtifactType getTypeOf(ImplementationArtifactDefinition artifactDefinition) {
if (artifactDefinition.getType() != null) {
ArchitectureElement archElem = arch.getComponentOrConnectorByName(artifactDefinition.getParent().getName());
if (archElem != null) {
ImplementableTypeMapping typeMapping = styleMapping.getImplementableTypeMapping(archElem.getStyleType());
if (typeMapping != null) {
return typeMapping.getImplementationArtifactType(artifactDefinition.getType());
}
}