Examples of clone()


Examples of org.openxri.xml.Ref.clone()

    Ref ref = (Ref) original;

    try {

      return (ref.clone());
    } catch (CloneNotSupportedException e) {

      throw new HibernateException("Cannot clone ref.");
    }
  }
View Full Code Here

Examples of org.openxri.xml.Service.clone()

    Service service = (Service) original;

    try {

      return (service.clone());
    } catch (CloneNotSupportedException e) {

      throw new HibernateException("Cannot clone service.");
    }
  }
View Full Code Here

Examples of org.openxri.xml.XRD.clone()

    XRD storeXrd = (XRD) authority.getXrd();
    if (storeXrd == null) return(null);
   
    // done

    return((XRD) storeXrd.clone());
  }
}
View Full Code Here

Examples of org.ow2.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.hasNext();) {
View Full Code Here

Examples of org.pdfclown.objects.PdfDirectObject.clone()

          PdfName.Resources,
          // Same document?
          /* NOTE: Try to reuse the resource dictionary whenever possible. */
          (context.equals(getDocument()) ?
            resourcesObject
            : (PdfDirectObject)resourcesObject.clone(contextFile))
          );
      }
    }

    // Body (contents).
View Full Code Here

Examples of org.pentaho.di.core.row.RowMetaInterface.clone()

    RowMetaInterface inputRowMeta = step.getInputRowMeta();
    if (inputRowMeta == null) {
      inputRowMeta = new RowMeta();
    }

    data.inputRowMeta = inputRowMeta.clone();
    data.inputFieldNames = data.inputRowMeta.getFieldNames();

    data.outputRowMeta = inputRowMeta.clone();
    meta.getFields(data.outputRowMeta, step.getStepname(), null, null, step);
View Full Code Here

Examples of org.pentaho.metadata.model.Domain.clone()

    incrementInvocationCount( "getDomain" ); //$NON-NLS-1$
    Domain d = domains.get( id );
    if ( d == null ) {
      return null;
    }
    d = (Domain) d.clone();
    final IPentahoSession session = PentahoSessionHolder.getSession();
    if ( session == null ) {
      return d;
    }
    d.setDescription( new LocalizedString( TEST_LOCALE, PentahoSessionHolder.getSession().getId() ) );
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.Element.clone()

      final Element element = elements[i];
      if (element instanceof SubReport)
      {
        try
        {
          inlineSubreports.add(element.clone());
        }
        catch (CloneNotSupportedException e)
        {
          throw new FunctionProcessingException("Failed to clone subreport", e);
        }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.GroupList.clone()

  public void testCreate()
          throws CloneNotSupportedException
  {
    final GroupList gl = new GroupList();
    gl.clear();
    assertNotNull(gl.clone());
    assertNotNull(gl.iterator());
    assertNotNull(gl.toString());
  }

  public void testMethods()
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.MasterReport.clone()

      assertNotNull("Failed to locate " + url, url);
      try
      {
        final MasterReport report = ReportGenerator.getInstance().parseReport(url);
        assertNotNull(report);
        report.clone();

        final ByteArrayOutputStream bo = new ByteArrayOutputStream();
        final ObjectOutputStream out = new ObjectOutputStream(bo);
        out.writeObject(report);
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.