Examples of clone()


Examples of org.linkedin.glu.provisioner.core.model.SystemEntry.clone()

  {
    if(state == null)
      return;

    SystemEntry systemEntry = findSystemEntry(entryKey);
    systemEntry = systemEntry.clone();
    systemEntry.setEntryState(state);
    newExpectedModel.addEntry(systemEntry);
    _newFilteredKeys.add(entryKey);
  }
View Full Code Here

Examples of org.mule.api.endpoint.EndpointBuilder.clone()

        EndpointBuilder endpointBuilder = lookupEndpointBuilder(uri);
        if (endpointBuilder != null)
        {
            try
            {
                endpointBuilder = (EndpointBuilder) endpointBuilder.clone();
            }
            catch (Exception e)
            {
                throw new EndpointException(CoreMessages.failedToClone("global endpoint EndpointBuilder"), e);
            }
View Full Code Here

Examples of org.mule.transaction.constraints.BatchConstraint.clone()

        BatchConstraint filter = new BatchConstraint();
        filter.setBatchSize(3);
        assertEquals(3, filter.getBatchSize());
        assertTrue(!filter.accept(testEvent));

        ConstraintFilter clone = (ConstraintFilter)filter.clone();
        assertNotNull(clone);
        assertNotSame(filter, clone);

        assertTrue(!filter.accept(testEvent));
        assertTrue(filter.accept(testEvent));
View Full Code Here

Examples of org.mvel2.asm.tree.AbstractInsnNode.clone()

                // Insert this new instantiation into the queue to be emitted
                // later.
                worklist.add(newinst);
            } else {
                newInstructions.add(insn.clone(instant));
            }
        }

        // Emit try/catch blocks that are relevant to this method.
        for (Iterator<TryCatchBlockNode> it = tryCatchBlocks.iterator(); it
View Full Code Here

Examples of org.objectweb.asm.tree.AbstractInsnNode.clone()

        // if possible, replace jump with target instruction
        if (in.getOpcode() == GOTO && target != null) {
          int op = target.getOpcode();
          if ((op >= IRETURN && op <= RETURN) || op == ATHROW) {
            // replace 'in' with clone of 'target'
            insns.set(in, target.clone(null));
          }
        }
      }
    }
    super.transform(mn);
View Full Code Here

Examples of org.ofbiz.entity.GenericValue.clone()

            testValue.remove("description");
            fail("Modified an immutable GenericValue");
        } catch (UnsupportedOperationException e) {
        }
        // Test entity value update operation updates the cache
        testValue = (GenericValue) testValue.clone();
        testValue.put("description", "New Testing Type #3");
        testValue.store();
        testValue = delegator.findOne("TestingType", true, "testingTypeId", "TEST-3");
        assertEquals("Retrieved from cache value has the correct description", "New Testing Type #3", testValue.getString("description"));
        // Test entity value remove operation updates the cache
View Full Code Here

Examples of org.openbp.common.generic.propertybrowser.PropertyDescriptor.clone()

        // The clone method of the ObjectNode doesn't clone
        // the property descriptor, so we have to do this manually.
        PropertyDescriptor pd = propertyNode.getPropertyDescriptor();
        try
        {
          pd = (PropertyDescriptor) pd.clone();
          pd.setReadOnly(readOnly);
          propertyNode.setPropertyDescriptor(pd);
        }
        catch (CloneNotSupportedException e)
        {
View Full Code Here

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

            continue;
          }

          flowConnection.encodeGeometry();

          link = (ControlLink) link.clone();
          process.addControlLink(link);

          if (! msgContainer.isEmpty())
          {
            // One of the end points of the link is not present in the copied set,
View Full Code Here

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

            continue;
          }

          paramConnection.encodeGeometry();

          link = (DataLink) link.clone();
          process.addDataLink(link);

          if (! msgContainer.isEmpty())
          {
            // One of the end points of the link is not present in the copied set,
View Full Code Here

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

          // Remember that we have copied this one
          copiedSourceNodes.add(node);

          // Clone the node and add it to the process
          node = (Node) node.clone();
          process.addNode(node);

          copyFlavor = ClientFlavors.PROCESS_ITEM;
        }
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.