Examples of search()


Examples of de.sub.goobi.persistence.RegelsatzDAO.search()

        }

        try {
            RegelsatzDAO rdao = new RegelsatzDAO();
            ProzessDAO pdao = new ProzessDAO();
            List<Regelsatz> rulesets = rdao.search("from Regelsatz where titel='" + this.myParameters.get("ruleset") + "'");
            if (rulesets == null || rulesets.size() == 0) {
                Helper.setFehlerMeldung("goobiScriptfield", "Could not found ruleset: ", "ruleset");
                return;
            }
            Regelsatz regelsatz = rulesets.get(0);

Examples of de.sub.goobi.persistence.SchrittDAO.search()

    Set<Benutzergruppe> neueGruppen = new HashSet<Benutzergruppe>();
    neueGruppen.add(gruppe);

    SchrittDAO dao = new SchrittDAO();
    //TODO: Try to avoid SQL
    List<Schritt> schritte = dao.search("from Schritt where titel='Automatische Generierung der SICI'");
    for (Schritt auf : schritte) {
      auf.setBenutzergruppen(neueGruppen);
      dao.save(auf);
    }
    Helper.setMeldung(null, "", "Sici erfolgreich korrigiert");

Examples of design_patterns.decorator.SearchAll.search()

        authors_node = new DefaultMutableTreeNode("Authors");
        reservations_node = new DefaultMutableTreeNode("Reservations");
         
        //call decorator pattern
        SearchAll aux = new SearchAll();
        products_node = aux.search(this.window_login.getProducts());
       
        videos_node = new SearchVideoDecorator(aux).search(this.window_login.getVideos());
       
        books_node = new SearchBookDecorator(aux).search(this.window_login.getBooks());

Examples of devplugin.ProgramSearcher.search()

          if (mProgressMonitor == null && !TvDataUpdater.getInstance().isDownloading()) {
            progressMonitor = MainFrame.getInstance().getStatusBar().createProgressMonitor();
            progressMonitor.setMessage(mLocalizer.msg("searching","Searching"));
          }

          Program[] programArr = searcher.search(searcherSettings.getFieldTypes(), startDate, searcherSettings
              .getNrDays(), searcherSettings.getChannels(), true, mProgressMonitor != null ? mProgressMonitor : progressMonitor, mListModel);

          comp.setCursor(cursor);
          if (programArr.length == 0) {
            UIThreadRunner.invokeLater(new Runnable() {

Examples of edu.cmu.cs.stage3.alice.core.Element.search()

                } else {
                  openingSceneStructure.addElement( new StringObjectPair( (String)child.name.getValue(), factory.createItem( child ) ) );
                }
              }
            } else {
              if( (child.search( criterion ).length > 0) || criterion.accept( child ) ) {
                // if it's the current scene group its kids need to go in the main pop-up
                if (child.equals(currentGroup)) {
                  groupKids = makeElementStructure( child, criterion, factory, context, currentValue, currentGroup );
                 
                  /*groupKids.add(0, structure.remove(0));

Examples of edu.cmu.cs.stage3.alice.core.Model.search()

    protected javax.vecmath.Vector3d getPositionEnd() {
      javax.vecmath.Vector3d v = new javax.vecmath.Vector3d(0,0,0);
     
      if (asSeenBy.get() instanceof Model) {
        Model character = (Model) asSeenBy.get();
        edu.cmu.cs.stage3.alice.core.Element[] heads = character.search(new edu.cmu.cs.stage3.alice.core.criterion.ElementNamedCriterion("head", true) );
        if ((heads.length > 0) && (heads[0] instanceof Model)) {
          m_characterHead = (Model) heads[0];
          v = m_characterHead.getBoundingBox().getCenterOfFrontFace();
          return m_characterHead.getPosition(v, edu.cmu.cs.stage3.alice.core.ReferenceFrame.ABSOLUTE);
        } else {

Examples of edu.gslis.ttg.searchers.SimpleSearcher.search()

    double averageThreshold = 0;
    Iterator<GQuery> queryIterator = trainingQueries.iterator();
    while(queryIterator.hasNext()) {
      GQuery query = queryIterator.next();
     
      Map<Long, TResult> seenResults = searcher.search(query);
     
      SimpleJaccardClusterer clusterer = new SimpleJaccardClusterer(new ArrayList<TResult>(seenResults.values()));
     
      // sweep through jaccard steps, calculating F1
      double maxF1 = 0;

Examples of edu.pitt.dbmi.nlp.noble.terminology.Terminology.search()

        if(text.matches("CL?\\d+") || text.startsWith("http://")){
          c = terminology.lookupConcept(text.trim());
        }else if("ROOT".equals(text)){
          c = terminology.getRootConcepts();
        }else{
          c = terminology.search(text);
        }
        response = processOutput(c);
      }else if ( action.equals("get_roots")){
        response = processOutput(terminology.getRootConcepts());
      }else if ( action.equals("lookup_concept")){

Examples of edu.pitt.dbmi.nlp.noble.terminology.impl.NobleCoderTerminology.search()

    Terminology terminology = new NobleCoderTerminology("TIES_Pathology");
    //Terminology terminology = new NobleCoderTerminology("NCI_Thesaurus");
    PathHelper ph = new PathHelper(terminology);
    //ph.createAncestryCache();
    for(String text: Arrays.asList("melanoma","nevus","skin","margin")){
      for(Concept c: terminology.search(text)){
        long t = System.currentTimeMillis();
        // lookup paths
       
        List<ConceptPath> path = ph.getPaths(c);
        t = System.currentTimeMillis()-t;

Examples of edu.pitt.terminology.CompositTerminology.search()

        continue;
   
      for(String sentence: getSentences(line)){
        for(String phrase: getPhrases(sentence) ){
          int offs = line.indexOf(phrase);
          for(Concept c: terminology.search(phrase,IndexFinderTerminology.BEST_MATCH)){
            for(Annotation a: c.getAnnotations()){ 
              if(a.getOffset() < (offset+offs))
                a.updateOffset(offset+offs);
              doc.addAnnotation(a);
            }
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.