Examples of clone()


Examples of org.jboss.marshalling.cloner.ObjectCloner.clone()

        final ObjectCloner cloner = clonerFactory.createCloner(configuration);
        final Object[] newParameters;
        final int len = parameters.length;
        newParameters = new Object[len];
        for (int i = 0; i < len; i++) {
             newParameters[i] = cloner.clone(parameters[i]);
        }
        context.setParameters(newParameters);
        try {
            final Object result = context.proceed();
            if (result == null) {
View Full Code Here

Examples of org.jboss.metadata.javaee.spec.ResourceEnvironmentReferenceMetaData.clone()

            jndiEnvironmentRefsGroup.setMessageDestinationReferences(msgRefs);
         }
         if(specMsgRefs != null)
         for(MessageDestinationReferenceMetaData ref : specMsgRefs)
         {
            ref = (MessageDestinationReferenceMetaData)ref.clone();
            String link = ref.getLink();
            if (link != null)
            {
               ArrayList<MessageDestinationReferenceMetaData> linkedRefs = resourceEnvReferenceLinks.get(link);
               if (linkedRefs == null)
View Full Code Here

Examples of org.jboss.metatype.api.values.TableValueSupport.clone()

      CompositeValue compData2 = initCompositeValue2(data);
      CompositeValue compData3 = initCompositeValue4(data);

      data.putAll(new CompositeValue[] { compData, compData2, compData3 });

      TableValue clone = data.clone();
      assertEquals("Clone should have the same tabular type", data.getMetaType(), clone.getMetaType());
      assertEquals("Clone should have the same number of elements", data.size(), clone.size());
      CompositeValue compDataClone = clone.get(initValues());
      assertTrue("Should be a shallow clone", compData == compDataClone);
   }
View Full Code Here

Examples of org.jboss.remoting.security.SSLSocketBuilderMBean.clone()

               {
                  SSLSocketBuilderMBean sslSocketBuilder = (SSLSocketBuilderMBean)server.
                  getAttribute(serverSocketFactoryObjName, "SSLSocketBuilder");
                  if (sslSocketBuilder != null)
                  {
                     SSLSocketBuilder clonedSSLSocketBuilder = (SSLSocketBuilder) sslSocketBuilder.clone();
                     boolean shouldUseDefault = sslSocketBuilder.getUseSSLServerSocketFactory();
                     clonedSSLSocketBuilder.setUseSSLSocketFactory(shouldUseDefault);
                     boolean useClientMode = sslSocketBuilder.isServerSocketUseClientMode();
                     clonedSSLSocketBuilder.setSocketUseClientMode(useClientMode);
                     SSLSocketFactoryService sslSocketFactoryService = new SSLSocketFactoryService();
View Full Code Here

Examples of org.jboss.resteasy.specimpl.ResteasyUriBuilder.clone()

      baseURI = absolutePath;
      if (!encodedPath.trim().equals(""))
      {
         String tmpContextPath = contextPath;
         if (!tmpContextPath.endsWith("/")) tmpContextPath += "/";
         baseURI = absoluteBuilder.clone().replacePath(tmpContextPath).replaceQuery(null).build();
      }
      // make sure there is no trailing '/'
      if (encodedPath.length() > 1 && encodedPath.endsWith("/"))
         encodedPath = encodedPath.substring(0, encodedPath.length() - 1);
View Full Code Here

Examples of org.jdesktop.wonderland.common.cell.state.ModelCellComponentServerState.clone()

        CellComponentServerState compState = state.getComponentServerState(
                ModelCellComponentServerState.class);
        if (state != null) {
            ModelCellComponentServerState mState =
                    (ModelCellComponentServerState) compState;
            origState = (ModelCellComponentServerState) mState.clone(null);
            deployedModelURLTF.setText(mState.getDeployedModelURL());
            pickingEnabledCB.setSelected(mState.isPickingEnabled());
            lightingEnabledCB.setSelected(mState.isLightingEnabled());
            backfaceCullingEnabledCB.setSelected(mState.isBackfactCullingEnabled());
            graphOptimizationEnabledCB.setSelected(mState.isGraphOptimizationEnabled());
View Full Code Here

Examples of org.jdom.Attribute.clone()

        copy.setText(source.getText());
        Iterator it = source.getAttributes().iterator();
   
        while (it.hasNext()) {
            Attribute attr = (Attribute)it.next();
            copy.setAttribute ((Attribute)attr.clone());
        }
       
        return copy;
    }
}
View Full Code Here

Examples of org.jdom.Document.clone()

    info.setDate("10/24/11");
  }

  public ToolOutput extractInfo(File file) throws FitsToolException
    Document doc = createXml(file);
    output = new ToolOutput(this,(Document)doc.clone(),doc);
    return output;
  }
 
  private Document createXml(File file) throws FitsToolException {
View Full Code Here

Examples of org.jdom.Element.clone()

   
    for (int j=0; j<objDefs.size(); j++) {
      Element eChild = (Element)objDefs.get(j);
      String childName = eChild.getAttribute("name").getValue();
      if (childExists(childName, inDocRoot) == false) {
        inDocRoot.addContent((Element)eChild.clone());
      }           
    }
  }

  private boolean childExists(String childName, Element rootElement) {
View Full Code Here

Examples of org.jdom.Text.clone()

                lastText = (Text) next;
            }
        }
        if ( ( lastText != null ) && ( lastText.getTextTrim().length() == 0 ) )
        {
            lastText = (Text) lastText.clone();
        }
        else
        {
            StringBuilder starter = new StringBuilder( lineSeparator );
            for ( int i = 0; i < counter.getDepth(); i++ )
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.