Package archmapper.main.model.stylemapping

Examples of archmapper.main.model.stylemapping.ConnectorTypeMapping


  
   * @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;
  }
View Full Code Here


        }
        return (type.isSingleton() == Boolean.TRUE);
      }
    } else {
      String connType = getConnectorTypeOf((ConnectorMapping) classDef.getParent());
      ConnectorTypeMapping connTypeMapping = styleMapping.getConnectorTypeMapping(connType);
      if (connTypeMapping != null) {
        ClassType type = connTypeMapping.getClassType(classDef.getType());
       
        if (type == null) {
          throw new ArchMapperException("The class type "+ classDef.getType() +
              " of class "+ classDef.getClassName() + " is not defined!");
        }
View Full Code Here

TOP

Related Classes of archmapper.main.model.stylemapping.ConnectorTypeMapping

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.