*
* @return
*/
public boolean hasConnectorImplementation(Connector connector) {
ConnectorMapping mapping = archMapping.getConnectorMapping(connector.getName());
ConnectorTypeMapping typeMapping = styleMapping.getConnectorTypeMapping(connector.getStyleType());
if (mapping != null) {
if (mapping.getHasImplementation() == Boolean.TRUE) {
return true;
}
// If it is false, and there are class or interface definitions,
// then set it to true nevertheless.
if (mapping.getClassDefinition().size() > 0 ||
mapping.getInterfaceDefinition().size() > 0 ||
mapping.getClassNamePattern().size() > 0) {
return true;
}
if (mapping.getHasImplementation() == Boolean.FALSE) {
return false;
}
}
if (typeMapping != null) {
return typeMapping.isHasImplementation();
}
return false;
}