Examples of Dependency


Examples of org.sonar.api.design.Dependency

  public void save() {
    final Collection<Directory> packages = packagesGraph.getVertices();
    for (Directory dir : packages) {
      //Save dependencies (cross-directories, including cross-directory file dependencies)
      for (DirectoryEdge edge : packagesGraph.getOutgoingEdges(dir)) {
        Dependency dependency = new Dependency(dir, edge.getTo())
            .setUsage("references")
            .setWeight(edge.getWeight())
            .setParent(null);
        context.saveDependency(dependency);
        dependencyIndex.put(edge, dependency);
View Full Code Here

Examples of org.sonar.wsclient.services.Dependency

public class DependencyUnmarshaller extends AbstractUnmarshaller<Dependency> {

  @Override
  protected Dependency parse(Object json) {
    WSUtils utils = WSUtils.getINSTANCE();
    return new Dependency()
        .setId(utils.getString(json, "id"))
        .setFromId(utils.getLong(json, "fi"))
        .setToId(utils.getLong(json, "ti"))
        .setFromKey(utils.getString(json, "fk"))
        .setToKey(utils.getString(json, "tk"))
View Full Code Here

Examples of org.sonatype.aether.graph.Dependency

      DefaultRepositorySystemSession session = container.setupRepoSession(system, settings);
      final String mavenCoords = toMavenCoords(addonId);
      Artifact queryArtifact = new DefaultArtifact(mavenCoords);
      session.setDependencyTraverser(new AddonDependencyTraverser());
      session.setDependencySelector(new AddonDependencySelector());
      Dependency dependency = new Dependency(queryArtifact, null);

      List<RemoteRepository> repositories = MavenRepositories.getRemoteRepositories(container, settings);

      CollectRequest collectRequest = new CollectRequest(dependency, repositories);
      DependencyResult result;
View Full Code Here

Examples of org.springframework.boot.dependency.tools.Dependency

    this.dependencies = dependencies;
  }

  @Override
  public String getGroupId(String artifactId) {
    Dependency dependency = find(artifactId);
    return (dependency == null ? null : dependency.getGroupId());
  }
View Full Code Here

Examples of org.springframework.roo.project.Dependency

        final List<Dependency> dependencies = new ArrayList<Dependency>();
        final List<Element> securityDependencies = XmlUtils.findElements(
                "/configuration/spring-security/dependencies/dependency",
                configuration);
        for (final Element dependencyElement : securityDependencies) {
            dependencies.add(new Dependency(dependencyElement));
        }
        projectOperations.addDependencies(moduleName, dependencies);
    }
View Full Code Here

Examples of org.tinyuml.draw.Dependency

    PackageElement target = factory.createPackage();
   
    mockElementFactory.expects(atLeastOnce()).method("create").
      with(eq(ElementType.DEPENDENCY)).will(returnValue(assoc));
   
    Dependency conn = (Dependency) factory.createDependency(source, target);
    assertEquals(assoc, conn.getModelElement());
    assertEquals(source, conn.getNode0());
    assertEquals(target, conn.getNode1());
    assertNull(conn.getParent());
  }
View Full Code Here

Examples of org.tinyuml.umldraw.structure.Dependency

 
  /**
   * Simulates dragging.
   */
  public void testDragging() {
    Dependency dependency = (Dependency) Dependency.getPrototype().clone();
    setStartDragExpectations();
    handler.setRelationType(RelationType.DEPENDENCY, (LineConnectMethod)
      mockConnectMethod.proxy());
    handler.mousePressed((EditorMouseEvent) mockEvent.proxy());
    assertTrue(handler.isDragging());
View Full Code Here

Examples of org.zkoss.ganttz.data.Dependency

            }
        }
    }

    public void addDependency(TaskComponent source, TaskComponent destination) {
        context.addDependency(new Dependency(source.getTask(), destination
                .getTask(), DependencyType.END_START));
    }
View Full Code Here

Examples of powermock.examples.mockpolicy.nontest.Dependency

* Very simple example of a class that uses a dependency.
*/
public class DependencyUser {

  public DataObject getDependencyData() {
    return new Dependency("some data").getData();
  }
View Full Code Here

Examples of ru.aristar.jnuget.files.nuspec.Dependency

        if (dependencies == null || dependencies.isEmpty()) {
            return list;
        }
        String cleanDependencies = dependencies.replaceAll(" ", "");
        for (String dependencyString : cleanDependencies.split("[\\|]")) {
            Dependency dependency = Dependency.parseString(dependencyString);
            if (dependency != null) {
                list.add(dependency);
            }
        }
        return list;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.