Examples of replace()


Examples of org.apache.maven.index.context.IndexingContext.replace()

            nexusIndexer.addIndexingContext( "test-new", "nexus-13", null, indexDir, null, null, DEFAULT_CREATORS );

        Directory newIndexDir = new RAMDirectory();

        DefaultIndexUpdater.unpackIndexArchive( new ByteArrayInputStream( os.toByteArray() ), newIndexDir, newContext );
        newContext.replace( newIndexDir );

        assertEquals( 0, newContext.getTimestamp().getTime() - context.getTimestamp().getTime() );

        assertEquals( context.getTimestamp(), newContext.getTimestamp() );
View Full Code Here

Examples of org.apache.pig.backend.hadoop.executionengine.physicalLayer.plans.PhysicalPlan.replace()

        // replace store operator in the splitter with split operator
        if (leaf instanceof POStore) {                           
            splitOp.setInputs(storePreds);
            try {
                splitterPl.replace(storeOp, splitOp);;
            } catch (PlanException e) {                  
                int errCode = 2132;
                String msg = "Internal Error. Unable to replace store with split operator for optimization.";
                throw new OptimizerException(msg, errCode, PigException.BUG, e);
            }
View Full Code Here

Examples of org.apache.pig.newplan.logical.relational.LogicalPlan.replace()

                ops.add((LogicalRelationalOperator) it.next());
            }
            for (LogicalRelationalOperator op : ops) {
                if (op instanceof LOStore) {
                    FuncSpec funcSpec = ((LOStore) op).getOutputSpec().getFuncSpec();
                    instrumentedQueryPlan.replace(op, new LOStore(instrumentedQueryPlan, new FileSpec(getTempFilename(), funcSpec)));
                }
            }
        }
       
        return instrumentedQueryPlan;
View Full Code Here

Examples of org.apache.sling.resourceresolver.impl.mapping.MapEntry.replace()

            String[] mappedPath = null;

            final Iterator<MapEntry> mapEntriesIterator = this.factory.getMapEntries().getResolveMapsIterator(requestPath);
            while (mapEntriesIterator.hasNext()) {
                final MapEntry mapEntry = mapEntriesIterator.next();
                mappedPath = mapEntry.replace(requestPath);
                if (mappedPath != null) {
                    if (logger.isDebugEnabled()) {
                        logger.debug("resolve: MapEntry {} matches, mapped path is {}", mapEntry, Arrays.toString(mappedPath));
                    }
                    if (mapEntry.isInternal()) {
View Full Code Here

Examples of org.apache.wicket.MarkupContainer.replace()

      if (parent != null)
      {
        final String thisId = component.getId();
        if (parent.get(thisId) != null)
        {
          parent.replace(component);
        }
        else
        {
          // try to search downwards to match the id
          // NOTE unfortunately, we can't rely on the path pre 2.0
View Full Code Here

Examples of org.apache.wicket.MockPageWithLink.replace()

          {
          }
        };
        link.setOutputMarkupId(true);

        page.replace(link);

        target.add(link);
      }
    };
    ajaxLink.setOutputMarkupId(true);
View Full Code Here

Examples of org.apache.wicket.MockPageWithLinkAndComponent.replace()

      {
        WebMarkupContainer wmc = new WebMarkupContainer(
          MockPageWithLinkAndComponent.COMPONENT_ID);
        wmc.setOutputMarkupId(true);
        wmc.add(timer);
        page.replace(wmc);
        target.add(wmc);
      }
    });

    tester.startPage(page);
View Full Code Here

Examples of org.apache.wicket.Page.replace()

          {
          }
        };
        link.setOutputMarkupId(true);

        page.replace(link);

        target.add(link);
      }
    };
    ajaxLink.setOutputMarkupId(true);
View Full Code Here

Examples of org.apache.wicket.markup.html.WebMarkupContainer.replace()

            protected void onSubmitInternal(final AjaxRequestTarget target, final Form<?> form) {
                final MembershipCond membershipCond = new MembershipCond();
                membershipCond.setRoleName(roleTO.getName());
                NodeCond cond = NodeCond.getLeafCond(membershipCond);

                userListContainer.replace(new UserSearchResultPanel("userList", true, cond, pageRef, restClient));

                target.add(userListContainer);
            }
        });
View Full Code Here

Examples of org.apache.wicket.markup.html.panel.Panel.replace()

      protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
        installStep.startInstallation(target);
        target.add(bBar.setEnabled(false));
      }
    };
    return bBar.replace(finish).setOutputMarkupId(true);
  }
 
  private abstract class BaseStep extends DynamicWizardStep {
    private static final long serialVersionUID = 1L;
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.