Examples of endsWith()


Examples of org.apache.wicket.util.string.AppendingStringBuffer.endsWith()

    // append the ids of elements to be deleted
    buffer.append(deleteIds);

    // does the buffer end if ','?
    if (buffer.endsWith(","))
    {
      // it does, trim it
      buffer.setLength(buffer.length() - 1);
    }
View Full Code Here

Examples of org.apache.yoko.rmi.util.ByteString.endsWith()

            int len = current.length();
            match = false;

            for (int i = 0; i < reservedPostfixes.length; i++) {
                if (current.endsWith(reservedPostfixes[i])) {
                    ByteBuffer buf = new ByteBuffer();
                    buf.append('_');
                    buf.append(result);
                    result = buf.toByteString();
View Full Code Here

Examples of org.apache.yoko.rmi.util.ByteString.endsWith()

            int len = current.length();
            match = false;

            for (int i = 0; i < reservedPostfixes.length; i++) {
                if (current.endsWith(reservedPostfixes[i])) {
                    ByteBuffer buf = new ByteBuffer();
                    buf.append('_');
                    buf.append(result);
                    result = buf.toByteString();
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.endsWith()

                    path = path.substring(5);
                }

                path = new File(path).getAbsolutePath();

                if (path.endsWith("!")) { //$NON-NLS-1$
                    path = path.substring(0, path.length() - 1);
                }

                return path;
            } catch (IOException e) {
View Full Code Here

Examples of org.exist.xmldb.XmldbURI.endsWith()

   
    @Override
    public void processPramatterBeforeSave(DBBroker broker, DocumentImpl document) throws ConfigurationException {
        XmldbURI uri = document.getCollection().getURI();
       
        final boolean isRemoved = uri.endsWith(SecurityManager.REMOVED_COLLECTION_URI);
        if(isRemoved) {
            uri = uri.removeLastSegment();
        }
   
        final boolean isAccount = uri.endsWith(SecurityManager.ACCOUNTS_COLLECTION_URI);
View Full Code Here

Examples of org.fife.ui.rsyntaxtextarea.Token.endsWith()

            if (t.type==Token.COMMENT_MULTILINE) {

              // Continuing an MLC from a previous line
              if (inMLC) {
                // Found the end of the MLC starting on a previous line...
                if (t.endsWith(MLC_END)) {
                  int mlcEnd = t.offset + t.textCount - 1;
                  currentFold.setEndOffset(mlcEnd);
                  Fold parentFold = currentFold.getParent();
                  // Don't add fold markers for single-line blocks
                  if (currentFold.isOnSingleLine()) {
View Full Code Here

Examples of org.jbehave.core.mock.UsingMatchers.endsWith()

       
        Ensure.that("octopus", m.contains("top"));
        Ensure.that("octopus", m.not(m.contains("eight")));
        Ensure.that("octopus", m.startsWith("octo"));
        Ensure.that("octopus", m.not(m.startsWith("eight")));
        Ensure.that("octopus", m.endsWith("pus"));
        Ensure.that("octopus", m.not(m.endsWith("eight")));
    }

    public void shouldProvideInstanceMatchers() {
        UsingMatchers m = new UsingMatchers() {};
View Full Code Here

Examples of org.jbehave.core.mock.UsingMatchers.endsWith()

        Ensure.that("octopus", m.contains("top"));
        Ensure.that("octopus", m.not(m.contains("eight")));
        Ensure.that("octopus", m.startsWith("octo"));
        Ensure.that("octopus", m.not(m.startsWith("eight")));
        Ensure.that("octopus", m.endsWith("pus"));
        Ensure.that("octopus", m.not(m.endsWith("eight")));
    }

    public void shouldProvideInstanceMatchers() {
        UsingMatchers m = new UsingMatchers() {};
       
View Full Code Here

Examples of org.jbehave.core.mock.UsingMatchers.endsWith()

       
        Ensure.that(horse, m.or(m.eq(horse), m.eq(cow)));
        Ensure.that(cow, m.either(m.eq(horse), m.eq(cow)));
       
        Ensure.that(horse, m.and(m.eq(horse), m.contains("ors")));
        Ensure.that(cow, m.both(m.eq(cow), m.endsWith("ow")));
    }
}
View Full Code Here

Examples of org.jboss.cache.Fqn.endsWith()

      // now verify the order.
      int index = 3;
      for (NodeEntry ne : queue)
      {
         String fqn = ne.getFqn().toString();
         assertTrue(fqn.endsWith("/" + Integer.toString(index)));
         index++;
      }

      // now verify the same order still exists after visiting the nodes.
      for (int i = 3; i < 8; i++)
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.