Пример #1
0
  public static final void substitute(IData pipeline) throws ServiceException {
    // --- <<IS-START(substitute)>> ---
    // @subtype unknown
    // @sigtype java 3.5
    IDataCursor cursor = pipeline.getCursor();

    try {
      IData dup = tundra.document.substitute(pipeline, pipeline, true);
      tundra.document.clear(pipeline, null);
      IDataUtil.merge(dup, pipeline);
    } finally {
      cursor.destroy();
    }
    // --- <<IS-END>> ---

  }
Пример #2
0
 // --- <<IS-START-SHARED>> ---
 // merges the contents of the given document into the given pipeline
 public static void merge(IData target, IData source) {
   if (target != null && source != null) IDataUtil.merge(source, target);
 }