Examples of startsWith()


Examples of com.kolich.havalo.entities.types.Repository.startsWith()

                                final KeyPair userKp) throws Exception {
        final Repository repo = getRepository(userKp.getKey());
        return new ReentrantReadWriteEntityLock<ObjectList>(repo) {
            @Override
            public ObjectList transaction() throws Exception {
                return repo.startsWith((startsWith != null) ?
                    // Only load objects that start with the given
                    // prefix, if one was provided.
                    startsWith : "");
            }
        }.read(false); // Shared read lock on repo, no wait
View Full Code Here

Examples of com.mysema.query.types.path.StringPath.startsWith()

    }

    @Test
    public void Various1() {
        StringPath str = new StringPath("str");
        for (String s : from(str, "a", "ab", "cd", "de").where(str.startsWith("a")).list(str)) {
            assertTrue(s.equals("a") || s.equals("ab"));
            System.out.println(s);
        }
    }
View Full Code Here

Examples of com.uic.ase.proj.xbn.string.SOBStringBuffer.startsWith()

      FLRString flrs = new FLRString(sob_sb.getStringBuffer());

      while(flrs.hasMoreLines())  {
        SOBStringBuffer ssbLine = new SOBStringBuffer(flrs.getNextLine());
        ssbLine.trim();
        if(ssbLine.length() < ||  ssbLine.startsWith("package"))  {
          continue;
        }

        if(ssbLine.startsWith("import"))  {
View Full Code Here

Examples of edu.stanford.nlp.ling.CoreLabel.startsWith()

      allGoldMentions.add(mentions);

      for (CoreLabel word : words) {
        String w = word.get(CoreAnnotations.TextAnnotation.class);
        // found regular token: WORD/POS
        if (!w.startsWith("<") && w.contains("\\/") && w.lastIndexOf("\\/") != w.length()-2) {
          int i = w.lastIndexOf("\\/");
          String w1 = w.substring(0, i);
          // we do NOT set POS info here. We take the POS tags from the parser!
          word.set(CoreAnnotations.TextAnnotation.class, w1);
          word.remove(CoreAnnotations.OriginalTextAnnotation.class);
View Full Code Here

Examples of java.awt.Point.startsWith()

        browser.setData("Browser.loading", false);
        new CMJ_locationChanged().asyncExec(browser, e.location, e.top);
      }
      public void changing(LocationEvent e) {
        final String location = e.location;
        if(location.startsWith(COMMAND_LOCATION_PREFIX)) {
          e.doit = false;
          String query = location.substring(COMMAND_LOCATION_PREFIX.length());
          if(query.endsWith("/")) {
            query = query.substring(0, query.length() - 1);
          }
View Full Code Here

Examples of java.io.File.startsWith()

    pkgFileName = pkgFileName.replace(File.separatorChar, '/');
      }
            Iterator jarContentIter = jarContents.iterator();
      while (jarContentIter.hasNext()) {
                String file = (String) jarContentIter.next();
    if (file.startsWith(pkgFileName) && file.endsWith(".class")) {
        file = removeDotClass(file);
        if (recurse ||
      file.indexOf('/', pkgFileName.length() + 1) < 0)
        {
      /*
 
View Full Code Here

Examples of java.lang.String.startsWith()

     

      // JvB: send a 400 response for requests (except ACK)
      // Currently only UDP, @todo also other transports
      String msgString = new String(msgBytes, 0, packetLength);
      if (!msgString.startsWith("SIP/") && !msgString.startsWith("ACK ")) {

        String badReqRes = createBadReqRes(msgString, ex);
        if (badReqRes != null) {
          if (sipStack.isLoggingEnabled()) {
            sipStack.getLogWriter().logDebug(
View Full Code Here

Examples of java.net.URL.startsWith()

      }
      else
      {
        // load image from relative path
        String src = (String)fElement.getAttributes().getAttribute(HTML.Attribute.SRC);
                                if (src.startsWith("data:image"))
                                {
                                    // we have a base64 encoded image
                                    int dataStart = src.indexOf("base64,") + 7;
                                    String data = src.substring(dataStart);
                                   
View Full Code Here

Examples of java.nio.file.Path.startsWith()

        if (hasAttribute(ATTR_APP_CLASS_PATH)) {
            for (String sp : getListAttribute(ATTR_APP_CLASS_PATH)) {
                Path p = Paths.get(expand(sanitize(sp)));

                if (appCache == null && (!p.isAbsolute() || p.startsWith(appCache)))
                    throw new IllegalStateException("Cannot resolve " + sp + "  in " + ATTR_APP_CLASS_PATH + " attribute when the "
                            + ATTR_EXTRACT + " attribute is set to false");

                p = appCache.resolve(p);
                classPath.add(p);
View Full Code Here

Examples of java.util.Collection.startsWith()

            } else if (type.equals(SelectionCriteria.BEGIN)) {
              if ((property instanceof String)
                  && (value instanceof String)) {
                String p = (String) property;
                String s = (String) value;
                if (p.startsWith(s)) {
                  result.add(entity);
                }
              }
            } else if (type.equals(SelectionCriteria.NOT_BEGIN)) {
              if ((property instanceof 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.