Examples of clone()


Examples of org.apache.tools.zip.ZipEntry.clone()

        String id_applyid = aInstance.getValue("id_applyid");
        ZipEntry ze = new ZipEntry(id_applyid + ".xml");
        zos.putNextEntry(ze);
        zos.write(DODownLoadFile.outHtmlCode(paneModelUid).getBytes(
            "utf-8"));
        ze.clone();
      }
    }
    zos.close();
    return zipFilePath.toString();
View Full Code Here

Examples of org.apache.turbine.util.ServerData.clone()

        //
        // Bundle all the information above up into a convenient structure
        //
        ServerData requestServerData = (ServerData) data.get(Turbine.class, ServerData.class);
        serverData = (ServerData) requestServerData.clone();
    }

    /**
     * Set the application root for the webapp.
     *
 
View Full Code Here

Examples of org.apache.tuscany.sca.assembly.Binding.clone()

            return;
        } else {
            endpointReference.setTargetEndpoint(matchedEndpoint);
            Binding binding = matchedEndpoint.getBinding();
            try {
                endpointReference.setBinding((Binding)binding.clone());
            } catch (CloneNotSupportedException e) {
                // shouldn't happen
                throw new RuntimeException(e);
            }
            // TUSCANY-3873 - add policy from the service
View Full Code Here

Examples of org.apache.tuscany.sca.interfacedef.DataType.clone()

        // instead do it more generally when the logical is another
        // DataType.
        //
        if (logical instanceof DataType) {
            DataType logicalDT = (DataType)logical;
            copy.logical = logicalDT.clone();
        }
        return copy;
    }

    @Override
View Full Code Here

Examples of org.apache.tuscany.sca.interfacedef.InterfaceContract.clone()

                                    xsdFactory,
                                    monitor);
            } else {
                try {
                    //TUSCANY-2316 Cloning the Interface Contract to avoid overriding data binding information
                    icontract = (InterfaceContract)icontract.clone();
                } catch (Exception e) {
                    //ignore
                }
            }
            wsBinding.setBindingInterfaceContract(icontract);
View Full Code Here

Examples of org.apache.tuscany.sca.runtime.RuntimeComponentReference.clone()

            }
            RuntimeComponentReference ref = (RuntimeComponentReference)endpointReference.getReference();
            InterfaceContract refInterfaceContract = getInterfaceContract(interfaceContract, businessInterface);
            if (refInterfaceContract != null) {
                if (refInterfaceContract != interfaceContract) {
                    ref = (RuntimeComponentReference)ref.clone();
                    if (interfaceContract != null) {
                        ref.setInterfaceContract(interfaceContract);
                    } else {
                        ref.setInterfaceContract(refInterfaceContract);
                    }
View Full Code Here

Examples of org.apache.tuscany.sca.runtime.RuntimeWire.clone()

            return null;
        }
        if (interfaceContract != null && interfaceContract != wire.getSource().getInterfaceContract()) {
            try {
                // FIXME: [rfeng] We could avoid clone() using a better comparison of the two interface contracts
                wire = (RuntimeWire)wire.clone();
                wire.getSource().setInterfaceContract(interfaceContract);
                wire.rebuild();
            } catch (CloneNotSupportedException e) {
                throw new ServiceRuntimeException(e);
            }
View Full Code Here

Examples of org.apache.uima.aae.deployment.AsyncAEErrorConfiguration.clone()

    // Clone OR Create a new AsyncAggregateErrorConfiguration
    AsyncAEErrorConfiguration aggErrorConfig = null;
    AsyncAEErrorConfiguration errorConfig = metaData.getAsyncAEErrorConfiguration();
    if (errorConfig instanceof AsyncAggregateErrorConfiguration_Impl) {
      // Clone
      aggErrorConfig = errorConfig.clone();
    } else {
      // Create a new AsyncAggregateErrorConfiguration
      aggErrorConfig = new AsyncAggregateErrorConfiguration_Impl();
      aggErrorConfig.setGetMetadataErrors(new GetMetadataErrors_Impl(errorConfig));
      aggErrorConfig.setProcessCasErrors(errorConfig.getProcessCasErrors().clone(aggErrorConfig));
View Full Code Here

Examples of org.apache.uima.analysis_engine.metadata.AnalysisEngineMetaData.clone()

    if (result) {
      // add our metadata to the CasManager, so that it will pick up our
      // type system, priorities, and indexes (clone it first, to ensure
      // CasManager's version doesn't change).
      AnalysisEngineMetaData md = getAnalysisEngineMetaData();
      getCasManager().addMetaData((AnalysisEngineMetaData)md.clone());

      // read parameters from additionalParams map
      Properties perfSettings = null;
      mMBeanServer = null;
      mMBeanNamePrefix = null;
View Full Code Here

Examples of org.apache.uima.analysis_engine.metadata.FlowControllerDeclaration.clone()

  }

  public void setResolvedFlowControllerDeclaration() throws InvalidXMLException {
    FlowControllerDeclaration fcDecl = aeDescription.getFlowControllerDeclaration();
    if (null != fcDecl) {
      resolvedFlowControllerDeclaration = (FlowControllerDeclaration) fcDecl.clone();
      resolvedFlowControllerDeclaration.resolveImports(createResourceManager());
    } else
      resolvedFlowControllerDeclaration = null;
  }
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.