Package org.tei.comparator.web.client

Examples of org.tei.comparator.web.client.MatchProposal


          current++;
         
          // if we are in the range
          if(current > start){
            String id = el.getAttributeNS(Utils.TEI_COMPARATOR_NAMESPACE, "cid");
            MatchProposal p = new MatchProposal(id);
            String html = DocumentContainer.getInstance().getElementAsStringFor(id, doc, file);
            p.setText(html);
            props.add(p);
          }
        }
      }
    }
View Full Code Here


   
    List<MatchProposal> matches = new ArrayList<MatchProposal>();
    for(ShingleCloudMatch sm : sCloud.getMatches()){
      if(sm.hasUpperBound() && maxNumberOfMatches > matches.size()){
        // create proposal
        MatchProposal proposal = new MatchProposal(sm.getUpperBound().getId());
        proposal.setDirectRating(sm.getRating() * 100);
        if(sCloud.getNeedleShingles().size() > 0)
          proposal.setIndirectRating(sm.getContainmentInNeedle());

        // add proposal if rating is good enough
        if(proposal.getIndirectRating() >= threshold){
          String text = docContainer.getElementAsStringFor(sm.getUpperBound().getId(), DocumentContainer.DERIVED);
          proposal.setText(text);
         
          // find notes on paragraph
          List<TCNote> notes = DBManager.getInstance().getNotesFor(TCNote.TYPE_PARAGRAPH, proposal.getId());
          proposal.setNotes(notes);
         
          matches.add(proposal);
        }
      }
    }
View Full Code Here

    if(null == selectedProposal){
      com.google.gwt.user.client.Window.alert("Please select proposal.");
      return;
    }
   
    MatchProposal mp = getSelectedMatchProposal();
    Commands.getInstance().getInformationOn(mp.getId(), ClientUtils.DERIVED);
  }
View Full Code Here

TOP

Related Classes of org.tei.comparator.web.client.MatchProposal

Copyright © 2018 www.massapicom. 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.