Examples of copy()


Examples of org.apache.torque.generator.source.SourceProvider.copy()

        SourceProvider sourceProvider = output.getSourceProvider();
        SourceProvider overrideSourceProvider
                = unitConfiguration.getOverrideSourceProvider();
        if (overrideSourceProvider != null)
        {
            overrideSourceProvider = overrideSourceProvider.copy();
            overrideSourceProvider.copyNotSetSettingsFrom(sourceProvider);
            sourceProvider = overrideSourceProvider;
        }
        controllerState.setSourceProvider(sourceProvider);
        sourceProvider.init(
View Full Code Here

Examples of org.apache.tuscany.container.rhino.rhino.RhinoScript.copy()

    public void testCopy() {
        RhinoScript ri = new RhinoScript(scriptName, script);
        Object x = ri.invoke("echo", new Object[] { "petra" }, null);
        assertEquals("petra", x);

        ri = ri.copy();
        x = ri.invoke("echo", new Object[] { "sue" }, null);
        assertEquals("sue", x);

    }
View Full Code Here

Examples of org.apache.tuscany.sca.databinding.DataBinding.copy()

            copiedArg = arg;
            DataType<?> dataType = registry.introspectType(arg);
            if (dataType != null) {
                DataBinding binding = registry.getDataBinding(dataType.getDataBinding());
                if (binding != null) {
                    copiedArg = binding.copy(arg);
                }
            }
            // FIXME: What to do if it's not recognized?
        }
        return copiedArg;
View Full Code Here

Examples of org.apache.uima.cas.FSIterator.copy()

    }

    final int max = count;
    count = 0;
    source.moveToFirst();
    copy = source.copy();
    copy.moveToFirst();
//     System.out.println("Max: " + max);
    while (count < max) {
//       System.out.println("Count: " + count);
      assertTrue(source.isValid());
View Full Code Here

Examples of org.apache.uima.ruta.textruler.learner.lp2.LP2RuleItem.MLLP2ContextConstraint.copy()

        MLLP2ContextConstraint ctxConstraint = ctxStartRule.getMarkingRuleItem()
                .getContextConstraint();
        LP2Rule newCTXRule = newRule.copy();
        newCTXRule.setIsContextualRule(true);
        newCTXRule.getMarkingRuleItem().setContextConstraint(ctxConstraint.copy());
        newCTXRule.setNeedsCompile(true);
        newCTXRule.compileRuleString();
        newCTXRule.setCoveringStatistics(getCoveringIntersection(newRule.getCoveringStatistics(),
                ctxStartRule.getCoveringStatistics()));
        // if
View Full Code Here

Examples of org.apache.xalan.xsltc.DOM.copy()

    dom.copy(((Node) obj).node, handler);
      }
      else if (obj instanceof DOM) {
    //((DOM)obj).copy(((org.apache.xml.dtm.ref.DTMDefaultBase)((DOMAdapter)obj).getDOMImpl()).getDocument(), handler);
    DOM newDom = (DOM)obj;
    newDom.copy(newDom.getDocument(), handler);
      }
      else {
    String string = obj.toString();    // or call stringF()
    final int length = string.length();
    if (length > _characterArray.length)
View Full Code Here

Examples of org.apache.xalan.xsltc.dom.DOMImpl.copy()

      final DOMSource domsrc = (DOMSource) source;
      new DOM2TO(domsrc.getNode(), handler).parse();
  }
  else if (source instanceof XSLTCSource) {
      final DOMImpl dom = ((XSLTCSource) source).getDOM();
      dom.copy(handler);
  }
  else {
      ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_NO_SOURCE_ERR);
      throw new TransformerException(err.toString());
  }
View Full Code Here

Examples of org.apache.xmlbeans.XmlObject.copy()

      for (State state : _states)
      {
        XmlObject o = (XmlObject) state.getContent();
        if (cursor == null)
        {
          cursor = o.copy().newCursor();
          cursor.push();
          cursor.toFirstChild();
          cursor.toEndToken();
          contentType = state.getContentType();
        }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.core.TypeVector.copy()

* Returns whether all subtypes of the given type have been pruned.
*/
private boolean pruneDeadBranches(IType type) {
  TypeVector subtypes = (TypeVector)this.typeToSubtypes.get(type);
  if (subtypes == null) return true;
  pruneDeadBranches(subtypes.copy().elements());
  subtypes = (TypeVector)this.typeToSubtypes.get(type);
  return (subtypes == null || subtypes.size == 0);
}
private void pruneDeadBranches(IType[] types) {
  for (int i = 0, length = types.length; i < length; i++) {
View Full Code Here

Examples of org.bukkit.WorldCreator.copy()

        }
        Logging.fine("Kind of copied stuff");

        WorldCreator worldCreator = new WorldCreator(newName);
        Logging.fine("Started to copy settings");
        worldCreator.copy(this.getMVWorld(oldName).getCBWorld());
        Logging.fine("Copied lots of settings");

        boolean useSpawnAdjust = this.getMVWorld(oldName).getAdjustSpawn();
        Logging.fine("Copied more settings");
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.