Examples of copyFrom()


Examples of org.openbp.core.model.Model.copyFrom()

    throws Exception
  {
    printMsg("Copying model '" + model.getName() + "' from " + sourceMgrType + " model manager to " + targetMgrType + " model manager.");

    Model newModel = new ModelImpl();
    newModel.copyFrom(model, Copyable.COPY_SHALLOW);
    ((ModelImpl) newModel).internalResetItems();
    targetMgr.addModel(newModel);

    copyItems(newModel, model, ItemTypes.TYPE, targetMgr);
    copyItems(newModel, model, ItemTypes.ACTOR, targetMgr);
View Full Code Here

Examples of org.openbp.core.model.ModelImpl.copyFrom()

    throws Exception
  {
    printMsg("Copying model '" + model.getName() + "' from " + sourceMgrType + " model manager to " + targetMgrType + " model manager.");

    Model newModel = new ModelImpl();
    newModel.copyFrom(model, Copyable.COPY_SHALLOW);
    ((ModelImpl) newModel).internalResetItems();
    targetMgr.addModel(newModel);

    copyItems(newModel, model, ItemTypes.TYPE, targetMgr);
    copyItems(newModel, model, ItemTypes.ACTOR, targetMgr);
View Full Code Here

Examples of org.openbp.core.model.ModelObject.copyFrom()

      ModelObject orig = (ModelObject) oee.original;

      try
      {
        orig.copyFrom(oee.getObject(), ModelObject.COPY_SHALLOW);
      }
      catch (CloneNotSupportedException e)
      {
        ExceptionUtil.printTrace(e);
        return EVENT_CONSUMED;
View Full Code Here

Examples of org.openbp.core.model.item.Item.copyFrom()

    {
      // copyFrom will overwrite the parent model information; save it
      Model currentModel = currentItem.getModel();

      // Copy the item data
      currentItem.copyFrom(argItem, Copyable.COPY_DEEP);

      // Repair hiearchy and establish links
      currentItem.setModel(currentModel);
      currentItem.maintainReferences(ModelObject.RESOLVE_GLOBAL_REFS | ModelObject.RESOLVE_LOCAL_REFS);
    }
View Full Code Here

Examples of org.openbp.core.model.item.process.ProcessObject.copyFrom()

    modeler.startUndo("Edit Properties");

    try
    {
      orig.copyFrom(oee.getObject(), ModelObject.COPY_SHALLOW);
    }
    catch (CloneNotSupportedException e)
    {
      ExceptionUtil.printTrace(e);
      return EVENT_CONSUMED;
View Full Code Here

Examples of org.pentaho.reporting.libraries.css.dom.LayoutStyle.copyFrom()

    final LayoutStyle initialStyle = getInitialStyle();
    final LayoutStyle style = element.getLayoutStyle();

    // Stage 0: Initialize with the built-in defaults
    // The copy will return false if it couldn't do the copy automatically
    if (style.copyFrom(initialStyle) == false)
    {
      // manually copy all styles from the initial style-set..
      for (int i = 0; i < keys.length; i++)
      {
        final StyleKey key = keys[i];
View Full Code Here

Examples of org.platformlayer.core.model.AddressModel.copyFrom()

      String cidr = address.getHostAddress() + "/" + range.getNetmaskLength();
      addressModel.cidr = cidr;

      AddressModels.populateDefaults(addressModel);
    } else {
      addressModel.copyFrom(this.addressModel);

      addressModel.address = key;

      IpRange netmask;
      if (!Strings.isNullOrEmpty(addressModel.netmask)) {
View Full Code Here

Examples of org.springframework.aop.framework.ProxyFactory.copyFrom()

      for (int i = 0; i < this.postInterceptors.length; i++) {
        proxyFactory.addAdvisor(this.advisorAdapterRegistry.wrap(this.postInterceptors[i]));
      }
    }

    proxyFactory.copyFrom(this);

    TargetSource targetSource = createTargetSource(this.target);
    proxyFactory.setTargetSource(targetSource);

    if (this.proxyInterfaces != null) {
View Full Code Here

Examples of org.springframework.aop.framework.ProxyFactoryBean.copyFrom()

                        // 如果是单例,对应的代理bean对象为同一个
                        ProxyFactoryBean proxyFactoryBean = new ProxyFactoryBean();
                        proxyFactoryBean.setBeanFactory(beanFactory);
                        proxyFactoryBean.setBeanClassLoader(proxyClassLoader);
                        proxyFactoryBean.setInterceptorNames(interceptorNames);
                        proxyFactoryBean.copyFrom(this); // 拷贝对应的一些Proxy config
                        proxyFactoryBean.setTarget(bean);
                        return proxyFactoryBean.getObject();
                    }
                }
            }
View Full Code Here

Examples of org.waveprotocol.box.common.comms.proto.DocumentSnapshotProtoImpl.copyFrom()

  private DocumentSnapshotProtoImpl getOrCreateDocumentSnapshotProtoImpl(DocumentSnapshot message) {
    if (message instanceof DocumentSnapshotProtoImpl) {
      return (DocumentSnapshotProtoImpl) message;
    } else {
      DocumentSnapshotProtoImpl messageImpl = new DocumentSnapshotProtoImpl();
      messageImpl.copyFrom(message);
      return messageImpl;
    }
  }

  /** Get or create a ProtocolHashedVersionProtoImpl from a ProtocolHashedVersion. */
 
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.