Examples of replace()


Examples of com.eviware.soapui.support.types.StringToStringsMap.replace()

    }

    public void setValue( String value )
    {
      StringToStringsMap valueMap = testRequest.getRequestHeaders();
      valueMap.replace( key, oldValue, value );
      testRequest.setRequestHeaders( valueMap );
    }
  }

  public class RequestParamHolder
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.netty.channel.ChannelPipeline.replace()

        ChannelFuture future = channel.write(request);

        future.addListener(new ChannelFutureListener() {
            public void operationComplete(ChannelFuture future) {
                ChannelPipeline p = future.getChannel().getPipeline();
                p.replace(HttpRequestEncoder.class, "ws-encoder", new WebSocket08FrameEncoder(true));

                if (future.isSuccess()) {
                    handshakeFuture.setSuccess();
                } else {
                    handshakeFuture.setFailure(future.getCause());
View Full Code Here

Examples of com.fasterxml.jackson.databind.node.ObjectNode.replace()

        ObjectMapper objectMapper = new ObjectMapper();
        try {
            ObjectNode modelNode = (ObjectNode) objectMapper.readTree(model.getMetaInfo());
            modelNode.put(ModelDataJsonConstants.MODEL_ID, model.getId());
            modelNode.replace(MODEL_DATA_JSON_MODEL,
                    objectMapper.readTree(repositoryService.getModelEditorSource(model.getId())));

            os.write(modelNode.toString().getBytes());
        } catch (IOException e) {
            LOG.error("While exporting workflow definition {}", model.getKey(), e);
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.html.DomNode.replace()

            // Get XML nodes for the DOM nodes passed in
            final DomNode newChildNode = newChild.getDomNodeOrDie();
            final DomNode oldChildNode;
            // Replace the old child with the new child.
            oldChildNode = ((Node) oldChildObject).getDomNodeOrDie();
            oldChildNode.replace(newChildNode);
            removedChild = oldChildObject;
        }

        return removedChild;
    }
View Full Code Here

Examples of com.github.sommeri.less4j.core.compiler.stages.ASTManipulator.replace()

    //variables are not supposed to be there now
    ExpressionEvaluator expressionEvaluator = new ExpressionEvaluator(problemsHandler, configuration);

    if (node instanceof Expression) {
      Expression value = expressionEvaluator.evaluate((Expression) node);
      manipulator.replace(node, value);
    } else {
      List<? extends ASTCssNode> childs = node.getChilds();
      for (ASTCssNode kid : childs) {
        switch (kid.getType()) {
        case FIXED_MEDIA_EXPRESSION:
View Full Code Here

Examples of com.github.sommeri.less4j.js.JsRegExp.replace()

  }

  private Expression regexp(Expression targetExpression, String string, String pattern, String replacement, String flags, ProblemsHandler problemsHandler, FunctionExpression call) {
    try {
      JsRegExp exp = JsRegExp.compile(pattern, flags);
      String replaced = exp.replace(string, replacement);
      return buildResult(targetExpression, replaced);
    } catch (IllegalArgumentException ex) {
      problemsHandler.regexpFunctionError(call, ex.getMessage());
      return new FaultyExpression(call.getUnderlyingStructure());
    }
View Full Code Here

Examples of com.google.gerrit.common.data.ParameterizedString.replace()

    ParameterizedString pattern = new ParameterizedString(type.getRevision());

    final Map<String, String> p = new HashMap<String, String>();
    p.put("project", encode(project.get()));
    p.put("commit", encode(ps.getRevision().get()));
    return baseUrl + pattern.replace(p);
  }

  public String toProject(final Project.NameKey project) {
    ParameterizedString pattern = new ParameterizedString(type.getProject());
View Full Code Here

Examples of com.google.gerrit.server.git.ProjectConfig.replace()

      // Scan AccountAgreement
      long minTime = addAccountAgreements(db, config, adminGroupUUIDs, agreements);

      ProjectConfig base = ProjectConfig.read(md, null);
      for (ContributorAgreement agreement : agreements.values()) {
        base.replace(agreement);
      }
      base.getAccountsSection().setSameGroupVisibility(
          config.getAccountsSection().getSameGroupVisibility());

      BatchMetaDataUpdate batch = base.openUpdate(md);
View Full Code Here

Examples of com.google.gwt.query.client.builders.JsniBundle.LibrarySource.replace()

          String replace[];
          if (librarySource != null) {
            value = librarySource.value();
            prepend = librarySource.prepend();
            postpend = librarySource.postpend();
            replace = librarySource.replace();
          } else {
            MethodSource methodSource = method.getAnnotation(MethodSource.class);
            if (methodSource != null) {
              value = methodSource.value();
              prepend = methodSource.prepend();
View Full Code Here

Examples of com.google.gwt.query.client.builders.JsniBundle.MethodSource.replace()

            MethodSource methodSource = method.getAnnotation(MethodSource.class);
            if (methodSource != null) {
              value = methodSource.value();
              prepend = methodSource.prepend();
              postpend = methodSource.postpend();
              replace = methodSource.replace();
            } else {
              continue;
            }
          }
          try {
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.