Examples of replace()


Examples of com.volantis.mcs.dom.Text.replace()

                    Text text = protocol.getDOMFactory().createText();

                    text.append(writer.toString());

                    // Replace the element with its textualized form.
                    text.replace(element);
                } else {
                    element.forEachChild(this);
                }
            }
        };
View Full Code Here

Examples of com.xixibase.cache.CacheClient.replace()

    CacheClientManager manager = CacheClientManager.getInstance("example");
    manager.initialize(serverlist, false);
   
    CacheClient cc = manager.createClient();
   
    cc.replace("key", "value1");
    System.out.println(cc.get("key"));
   
    long cacheID1 = cc.add("key", "value2");
    System.out.println(cc.get("key"));
   
View Full Code Here

Examples of de.iritgo.aktera.util.string.SuperString.replace()

        // ==================================
        // Replace 0 or more occurancees of criteria code parameter with value
        // ==================================
        while (myStatement.toString().indexOf("$" + oneCriteriaCode) != - 1)
        {
          myStatement = new SuperString(myStatement.replace("$" + oneCriteriaCode,
          // BUEROBYTE: Don't cast to String, convert to String!

                  //                (String) criteriaInput.get(oneCriteriaCode)));
                  criteriaInput.get(oneCriteriaCode).toString()));
View Full Code Here

Examples of de.sub.goobi.helper.VariableReplacer.replace()

        if (pfg.getFolder() != null && pfg.getFolder().length() > 0) {
          File folder = new File(myProzess.getMethodFromName(pfg.getFolder()));
          if (folder != null && folder.exists() && folder.list().length > 0) {
            VirtualFileGroup v = new VirtualFileGroup();
            v.setName(pfg.getName());
            v.setPathToFiles(vp.replace(pfg.getPath()));
            v.setMimetype(pfg.getMimetype());
            v.setFileSuffix(pfg.getSuffix());
            mm.getDigitalDocument().getFileSet().addVirtualFileGroup(v);
          }
        } else {
View Full Code Here

Examples of de.sub.goobi.helper.VariableReplacerWithoutHibernate.replace()

          if (pfg.getFolder() != null && pfg.getFolder().length() > 0) {
            File folder = new File(this.fi.getMethodFromName(pfg.getFolder()));
            if (folder != null && folder.exists() && folder.list().length > 0) {
              VirtualFileGroup v = new VirtualFileGroup();
              v.setName(pfg.getName());
              v.setPathToFiles(vp.replace(pfg.getPath()));
              v.setMimetype(pfg.getMimetype());
              v.setFileSuffix(pfg.getSuffix());
              mm.getDigitalDocument().getFileSet().addVirtualFileGroup(v);
            }
          } else {
View Full Code Here

Examples of edu.stanford.ppl.concurrent.SnapTreeMap.replace()

    /**
     *   replace fails when the given key is not present
     */
    public void testReplace() {
        SnapTreeMap 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 freenet.client.filter.FilterMIMEType.replace()

    }
    if (failedUnknownMIMEType.size() > 0) {
      String[] types = failedUnknownMIMEType.keySet().toArray(new String[failedUnknownMIMEType.size()]);
      Arrays.sort(types);
      for(String type : types) {
        String atype = type.replace("-", "--").replace('/', '-');
        navigationContent.addChild("li").addChild("a", "href", "#failedDownload-unknowntype-"+atype, l10n("failedDUnknownMIME", new String[]{ "size", "type" }, new String[]{ String.valueOf(failedUnknownMIMEType.get(type).size()), type }));
      }
    }
    if (failedBadMIMEType.size() > 0) {
      String[] types = failedBadMIMEType.keySet().toArray(new String[failedBadMIMEType.size()]);
View Full Code Here

Examples of gnu.java.lang.CPStringBuilder.replace()

    r.append("<this>");
  else
    r.append(o);
  r.append(", ");
      }
      r.replace(r.length() - 2, r.length(), "]");
      return r.toString();
    }

  } // class DescendingSet
View Full Code Here

Examples of gnu.testlet.javax.swing.text.FlowView.TestFlowView.replace()

    DefaultStyledDocument doc = new DefaultStyledDocument();
    Element el = doc.new BranchElement(null, null);
    TestFlowView fv = new TestFlowView(el, View.Y_AXIS);
    // Create one row and fill it with one oversized testview.
    TestFlowView.TestRow row = (TestFlowView.TestRow) fv.createRow();
    fv.replace(0, 0, new View[]{row});
    row.preferred = 200;

    fv.getFlowStragy().adjustRow(fv, 0, 150, 0);
    h.check(fv.getView(0), row);
  }
View Full Code Here

Examples of gnu.trove.list.TIntList.replace()

        collection.add( 1138 );
        assertFalse( list.equals( collection ) );

        TIntList other = new TIntLinkedList( list );
        other.replace( 10, 1138 );
        assertFalse( list.equals( other ) );
    }


    public void testSerialization() throws Exception {
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.