Examples of clone()


Examples of org.openbp.core.model.item.process.NodeParam.clone()

            paramHolder.setName("SocketDummy");
            socketHolder.addSocket(paramHolder);
          }

          // Clone the socket and add it to the dummy node
          param = (NodeParam) param.clone();
          paramHolder.addParam(param, - 1);

          copyFlavor = ClientFlavors.NODE_PARAMS;
        }
      }
View Full Code Here

Examples of org.openbp.core.model.item.process.NodeSocket.clone()

            socketHolder.setName("NodeDummy");
            process.addNode(socketHolder);
          }

          // Clone the socketand add it to the dummy node
          socket = (NodeSocket) socket.clone();
          socketHolder.addSocket(socket);

          copyFlavor = ClientFlavors.NODE_SOCKETS;
        }
View Full Code Here

Examples of org.openbp.core.model.item.process.TextElement.clone()

          textElementFigure.encodeGeometry();

          TextElement textElement = textElementFigure.getTextElement();

          // Clone the element and add it to the process
          textElement = (TextElement) textElement.clone();
          process.addTextElement(textElement);

          copyFlavor = ClientFlavors.PROCESS_ITEM;
        }
View Full Code Here

Examples of org.openbp.jaspira.propertybrowser.nodes.ObjectNode.clone()

    // Clone the node and return it to the client.
    if (node != null)
    {
      try
      {
        return (ObjectNode) node.clone();
      }
      catch (CloneNotSupportedException ex)
      {
        ExceptionUtil.printTrace(ex);
      }
View Full Code Here

Examples of org.openbp.swing.components.wizard.SequenceManagerImpl.clone()

    if (originalSequence == null)
    {
      // First time: Back up the page sequence
      try
      {
        originalSequence = (SequenceManagerImpl) manager.clone();
      }
      catch (CloneNotSupportedException e)
      {
        // Never happens
      }
View Full Code Here

Examples of org.openflow.protocol.OFFlowMod.clone()

            } catch (IOException e) {
                log.error("Failure writing flow mod", e);
            }

            try {
                fm = fm.clone();
            } catch (CloneNotSupportedException e) {
                log.error("Failure cloning flow mod", e);
            }
        }
View Full Code Here

Examples of org.openflow.protocol.OFMatch.clone()

        OFFlowMod fm1 =
                (OFFlowMod) mockFloodlightProvider.getOFMessageFactory().
                    getMessage(OFType.FLOW_MOD);
        fm1.setIdleTimeout((short)5)
            .setMatch(match.clone()
                    .setWildcards(expected_wildcards))
            .setActions(actions)
            .setBufferId(OFPacketOut.BUFFER_ID_NONE)
            .setCookie(2L << 52)
            .setLengthU(OFFlowMod.MINIMUM_LENGTH+OFActionOutput.MINIMUM_LENGTH);
View Full Code Here

Examples of org.openflow.protocol.queue.OFPacketQueue.clone()

        TestCase.assertEquals(1, reply2.getQueues().size());
        TestCase.assertEquals(1, reply2.getQueues().get(0).getProperties().size());
        TestCase.assertTrue(reply2.getQueues().get(0).getProperties().get(0) instanceof OFQueuePropertyMinRate);
        TestCase.assertEquals(OFQueuePropertyType.MIN_RATE, reply2.getQueues().get(0).getProperties().get(0).getType());

        reply.getQueues().add(queue.clone());
        reply.setLengthU(reply.getLengthU() + queue.getLength());
        bb.clear();
        reply.writeTo(bb);
        bb.flip();
        reply2 = new OFQueueConfigReply();
View Full Code Here

Examples of org.opengis.geometry.primitive.Surface.clone()

    this.testSurfaces((SurfaceImpl) surface2);
   
    // ***** clone()
    SurfaceImpl surface3 = null;
    try {
      surface3 = (SurfaceImpl) surface2.clone();
    } catch (CloneNotSupportedException e) {
      e.printStackTrace();
    }
    assertTrue(surface2 != surface3);
    this.testSurfaces((SurfaceImpl) surface3);
View Full Code Here

Examples of org.openrdf.query.algebra.TupleExpr.clone()

      }
      else if (joinArg instanceof Join || distinct) {
        // Local join with multiple owners or distinct federation members
        Union union = new Union();
        for (SignedConnection owner : owners) {
          union.addArg(new OwnedTupleExpr(owner, joinArg.clone()));
        }
        replacement.addArg(union);
      }
      else {
        replacement.addArg(joinArg);
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.