Examples of replace()


Examples of lombok.val.replace()

  {
    // get the class's package
    val myPackage = pkg.getName();

    // convert package to class path
    String myClasspath = CONSTANT.FORWARD_SLASH + myPackage.replace(CONSTANT.DOT, CONSTANT.FORWARD_SLASH);
    if (!myClasspath.endsWith(CONSTANT.FORWARD_SLASH))
      myClasspath += CONSTANT.FORWARD_SLASH;

    // append filename to class path
    val resourceClasspath = myClasspath + filename;
View Full Code Here

Examples of lupos.engine.operators.tripleoperator.TriplePattern.replace()

      // checkPrecondition
      // Already checked in checkPrecondition: All variables in tp can be
      // replaced!
      for (final Variable v : tp.getVariables()) {
        final Variable rv = repVar.getReplacement(v);
        tp.replace(v, rv);
      }
      final List<OperatorIDTuple> list = new LinkedList<OperatorIDTuple>();
      list.addAll(repVar.getSucceedingOperators());
      tp.setSucceedingOperators(list);
      for (final OperatorIDTuple oidt : repVar.getSucceedingOperators())
View Full Code Here

Examples of net.htmlparser.jericho.OutputDocument.replace()

        } else {
          URL = imageDirName + "/" + baseFilename + "_" + index + ".png";
          index++;
        }

        outputDocument.replace(element, "<img src=\""+URL+"\" />");
        diagramList.put(URL, element.getContent().toString());
      }
    }
   
    if(diagramList.isEmpty()){
View Full Code Here

Examples of net.infopeers.commons.regex.Replacer.replace()

      protected String replace(int groupIndex, String value) {
        return value;
      }
    };
   
    assertEquals("/test/abc/format.test", replacer.replace(path));

  }

}
View Full Code Here

Examples of net.openhft.collections.SharedHashMap.replace()

     * replace fails when the given key is not present
     */
    @Test
    public void testReplace() throws IOException {
        SharedHashMap map = map5();
        assertNull(map.replace(six, "Z"));
        assertFalse(map.containsKey(six));
    }

    /**
     * replace succeeds if the key is already present
View Full Code Here

Examples of net.rim.device.api.system.RuntimeStore.replace()

    }

    private void setUiRunningIndication() {
        Object ui_running_token = new Object();
        RuntimeStore rts = RuntimeStore.getRuntimeStore();
        rts.replace(Constants.UI_IS_RUNNING, ui_running_token);
    }

    public void startRtsMonitorThread() {
        Thread thread = new Thread(this);
        thread.start();
View Full Code Here

Examples of net.rim.device.api.ui.Manager.replace()

    if (visible && !isVisible(field)) {
      if (peer == null) {
        throw new IllegalStateException("Placeholder missing");
      }
      Manager manager = peer.getManager();
      manager.replace(peer, field);
    } else if (!visible && isVisible(field)) {
      if (peer == null) {
        peer = new NullField();
        field.setCookie(peer);
      }
View Full Code Here

Examples of net.sf.ehcache.Cache.replace()

    Element previousValue = cache.get( key );
    if ( previousValue == null ) {
      previousValue = cache.putIfAbsent( new Element( key, initialValue ) );
    }
    if ( previousValue != null ) {
      while ( !cache.replace( previousValue,
          new Element( key, ( (Integer) previousValue.getValue() ) + increment ) ) ) {
        previousValue = cache.get( key );
      }
      value.initialize( ( (Integer) previousValue.getValue() ) + increment );
    }
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.NpcHtmlMessage.replace()

        filename += (suffix != null) ? val + suffix + ".htm" : val + ".htm";

        // Send a Server->Client NpcHtmlMessage containing the text of the L2NpcInstance to the L2PcInstance
        NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
        html.setFile(filename);
        html.replace("%objectId%",String.valueOf(getObjectId()));
        html.replace("%festivalType%", SevenSignsFestival.getFestivalName(_festivalType));
        html.replace("%cycleMins%", String.valueOf(SevenSignsFestival.getInstance().getMinsToNextCycle()));
        if (!isDescription && "2b".equals(val + suffix))
            html.replace("%minFestivalPartyMembers%", String.valueOf(Config.ALT_FESTIVAL_MIN_PLAYER));
View Full Code Here

Examples of net.sf.saxon.regex.RegularExpression.replace()

                        "The regular expression in replace() must not be one that matches a zero-length string",
                        "FORX0003", c);
            }
        }
        String input = arg0.getStringValue();
        CharSequence res = re.replace(input, replacement);
        return StringValue.makeStringValue(res);
    }

    /**
     * Check the contents of the replacement string
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.