Examples of clone()


Examples of org.ejbca.core.model.ra.raadmin.EndEntityProfile.clone()

        } else {
        // We need to clone the profile, otherwise the cache contents will be modifyable from the outside
          final EndEntityProfile eep = profileCache.getProfileCache(entityManager).get(Integer.valueOf(id));
        try {
          if (eep != null) {
            returnval = (EndEntityProfile)eep.clone();
          }
        } catch (CloneNotSupportedException e) {
          LOG.error("Should never happen: ", e);
          throw new RuntimeException(e);
        }
View Full Code Here

Examples of org.enclojure.ide.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 it = tryCatchBlocks.iterator(); it.hasNext();) {
View Full Code Here

Examples of org.exoplatform.commons.serialization.SerializationContext.clone()

      TypeDomain domain = new TypeDomain();
      domain.addTypeModel(A2.class);
      SerializationContext context = new SerializationContext(domain);
      context.addFactory(new A1());
      A2 a2 = new A2();
      assertSame(A1.instance, context.clone(a2));
   }

   public void testFactoryThrowsException() throws Exception
   {
      TypeDomain domain = new TypeDomain();
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.dataflow.TransientPropertyData.clone()

      List<ValueData> mergeFailedRefs = null;
      int state = 0;
      if (mergeFailed != null)
      {
         mergeFailed = mergeFailed.clone();
         mergeFailedRefs = mergeFailed.getValues();
         state = ItemState.UPDATED;
      }
      else
      {
View Full Code Here

Examples of org.fife.ui.rsyntaxtextarea.Style.clone()

      for (int i = 0; i < SquirrelTokenMarker.getNumTokenTypes(); i++)
      {
         Style s = styles[i];
         if (s != null)
         {
            shcs.styles[i] = (Style) s.clone();
         }
      }
      return shcs;
   }
View Full Code Here

Examples of org.flexdock.docking.state.DockingState.clone()

    private ArrayList getSequenceClone() {
        ArrayList list = new ArrayList(sequence.size());
        for(Iterator it=sequence.iterator(); it.hasNext();) {
            DockingState info = (DockingState)it.next();
            list.add(info.clone());
        }
        return list;
    }

    public Object clone() {
View Full Code Here

Examples of org.flexdock.docking.state.FloatingGroup.clone()

            Hashtable floatTable = (Hashtable)floatingGroups.clone();
            for(Iterator it=floatingGroups.keySet().iterator(); it.hasNext();) {
                Object key = it.next();
                FloatingGroup group = (FloatingGroup)floatingGroups.get(key);
                floatTable.put(key, group.clone());
            }

            // note, we're using a shallow copy of the listener list.
            // it's okay that we share listener references, since we want the
            // cloned Layout to have the same listeners.
View Full Code Here

Examples of org.flexdock.docking.state.tree.SplitNode.clone()

        ArrayList nodeList = null;
        if(nodes!=null) {
            nodeList = new ArrayList(nodes.size());
            for(Iterator it=nodes.iterator(); it.hasNext();) {
                SplitNode node = (SplitNode)it.next();
                nodeList.add(node.clone());
            }
        }

        DockingPath path = new DockingPath(siblingId, tabbed, nodeList);
        path.rootPortId = rootPortId;
View Full Code Here

Examples of org.gdal.ogr.Geometry.Clone()

                Usage();
            }

        } else if (hasClipSrc && clipSrcDS == null) {

            clipSrc = spatialFilter.Clone();

            if (clipSrc == null) {

                System.out
                        .println("FAILURE: "
View Full Code Here

Examples of org.gdal.osr.SpatialReference.Clone()

               }
            }
            else
            {
               alreadyExistingSpatialRefValid = true;
               alreadyExistingSpatialRef = (spatialRef!=null) ? spatialRef.Clone() : null;
            }

            /* -------------------------------------------------------------------- */
            /*    Check if all layers in dataset have the same attributes  schema. */
            /* -------------------------------------------------------------------- */
 
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.