Examples of createNode()


Examples of org.gephi.datalab.api.GraphElementsController.createNode()

                graph.readUnlock();

                if (source == null) {
                    if (createNewNodes) {//Create new nodes when they don't exist already and option is enabled
                        if (source == null) {
                            source = gec.createNode(null, sourceId);
                        }
                    } else {
                        continue;//Ignore this edge row, since no new nodes should be created.
                    }
                }
View Full Code Here

Examples of org.gephi.datalab.api.GraphElementsController.createNode()

                graph.readUnlock();

                if (target == null) {
                    if (createNewNodes) {//Create new nodes when they don't exist already and option is enabled
                        if (target == null) {
                            target = gec.createNode(null, targetId);
                        }
                    } else {
                        continue;//Ignore this edge row, since no new nodes should be created.
                    }
                }
View Full Code Here

Examples of org.jahia.ajax.gwt.client.service.content.JahiaContentManagementServiceAsync.createNode()

                // Item creation
                status.setData(OPERATION_CALLED, "true");
                if ((sourceNodeType.getItems() == null || sourceNodeType.getItems().size() == 0) &&
                        (sourceNodeType.getInheritedItems() == null ||
                                sourceNodeType.getInheritedItems().size() == 0)) {
                    service.createNode(parentPath, null, sourceNodeType.getName(), null, null,
                            new ArrayList<GWTJahiaNodeProperty>(), null, new BaseAsyncCallback<GWTJahiaNode>() {
                                public void onApplicationFailure(Throwable throwable) {
                                    Window.alert("Properties save failed\n\n" + throwable.getLocalizedMessage());
                                    Log.error("failed", throwable);
                                }
View Full Code Here

Examples of org.jamesii.core.math.parsetree.NodeFactory.createNode()

public class TestNodeFactory extends TestCase {

  public void testCreateNode() {
    NodeFactory nf = new NodeFactory();
    AbsNode n = nf.createNode(AbsNode.class, new ValueNode<>(-2));

    ValueNode<Double> resAbs = n.calc(null);

    assertTrue(resAbs.getValue().compareTo(2.) == 0);
View Full Code Here

Examples of org.jboss.dna.graph.connector.map.MapWorkspace.createNode()

        assertThat(workspace, is(notNullValue()));
        assertThat(repository.getWorkspaceNames(), hasItems(workspaceName));

        // Populate the workspace with a few nodes ...
        MapNode root = workspace.getRoot();
        MapNode node_a = workspace.createNode(context, root, nameFactory.create("a"), null);
        MapNode node_b = workspace.createNode(context, node_a, nameFactory.create("b"), null);
        MapNode node_c = workspace.createNode(context, node_b, nameFactory.create("c"), null);
        MapNode node_d = workspace.createNode(context, root, nameFactory.create("d"), null);
        MapNode node_e = workspace.createNode(context, node_d, nameFactory.create("e"), null);
        MapNode node_b2 = workspace.createNode(context, node_d, nameFactory.create("b"), null);
View Full Code Here

Examples of org.jclouds.chef.ChefApi.createNode()

      Supplier<Map<String, JsonBall>> automaticSupplier = Suppliers.<Map<String, JsonBall>> ofInstance(ImmutableMap.<String, JsonBall> of());

      Node nodeWithAutomatic = Node.builder().name("name").environment("_default")
            .automaticAttributes(automaticSupplier.get()).build();

      chef.createNode(nodeWithAutomatic);

      replay(chef);

      CreateNodeAndPopulateAutomaticAttributesImpl updater = new CreateNodeAndPopulateAutomaticAttributesImpl(chef,
            automaticSupplier);
View Full Code Here

Examples of org.jnode.fs.hfsplus.catalog.Catalog.createNode()

            throw new ReadOnlyFileSystemException();
        }
        Catalog catalog = ((HfsPlusFileSystem) getFileSystem()).getCatalog();
        SuperBlock volumeHeader = ((HfsPlusFileSystem) getFileSystem()).getVolumeHeader();
        CatalogLeafNode node =
            catalog.createNode(name, this.folder.getFolderId(),
                new CatalogNodeId(volumeHeader.getNextCatalogId()),
                CatalogFolder.RECORD_TYPE_FOLDER_THREAD);
        folder.incrementValence();

        HfsPlusEntry newEntry =
View Full Code Here

Examples of org.lilystudio.smarty4j.Engine.createNode()

                    .mergeExpression(words, 2, wordSize, Operation.OBJECT)
                    : (IExpression) word2));
              } else if (word2 instanceof String) {
                String word = (String) word2;
                // 首个词是字符串, 是函数开始语句
                IFunction function = (IFunction) engine.createNode(word, true);
                function.init(template, word);
                function.syntax(template, words, wordSize);
                if (function.setParent(this)) {
                  addStatement(function);
                }
View Full Code Here

Examples of org.neo4j.graphdb.GraphDatabaseService.createNode()

        {
            Transaction tx = database.beginTx();

            try
            {
                Node rickard = database.createNode();
                rickard.setProperty( "name", "Rickard" );

                Node niclas = database.createNode();
                niclas.setProperty( "name", "Niclas" );
View Full Code Here

Examples of org.neo4j.kernel.EmbeddedGraphDatabase.createNode()

   
    EmbeddedGraphDatabase graphDB = ContextHelper.getGraphDatabase(servletContext);
   
    Transaction tx = graphDB.beginTx();
    try{
      userNode = graphDB.createNode();
      save();
     
      tx.success();
    } catch (Exception e){
      tx.failure();
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.