Examples of find()


Examples of de.iritgo.aktera.usergroupmgr.UserManager.find()

    try
    {
      um = (UserManager) getService(UserManager.ROLE, svcConfig.getHint(UserManager.ROLE));
      gm = (GroupManager) getService(GroupManager.ROLE, svcConfig.getHint(GroupManager.ROLE));

      User u = um.find(User.Property.NAME, loginName);
      Configuration[] domains = configuration.getChildren("domain");

      for (int i = 0; i < domains.length; i++)
      {
        Configuration oneDomain = domains[i];
View Full Code Here

Examples of de.matrixweb.vfs.VFS.find()

    task.setOptionsDefinition(options);
    final ProcessorFactory processorFactory = new JavaEEProcessorFactory();
    try {
      final VFS vfs = new VFS();
      try {
        vfs.mount(vfs.find("/"), new ServletFile(getServletContext(), "/"));
        this.result = new Pipeline(processorFactory).execute(
            Version.getCurrentVersion(), vfs, new VFSResourceResolver(vfs),
            task);
      } finally {
        vfs.dispose();
View Full Code Here

Examples of de.mhus.lib.jpa.JpaEntityManager.find()

    System.out.println("ID: " + book1.getId() );
    System.out.println("ID: " + book2.getId() );
   
    assertNotSame(book1.getId(), book2.getId());

    Book foundBook = em.find(Book.class, book1.getId());
   
    assertSame(book1.getName(), foundBook.getName());
   
    assertSame(book1, foundBook);
   
View Full Code Here

Examples of edu.stanford.nlp.ling.tokensregex.TokenSequenceMatcher.find()

    }
    // TODO: Should we allow "," in written out numbers?
    // TODO: Handle "-" that is not with token?
    TokenSequenceMatcher matcher = numberPattern.getMatcher(tokens);
    List<CoreMap> numbers = new ArrayList<CoreMap>();
    while (matcher.find()) {
      @SuppressWarnings("unused")
      List<CoreMap> matchedTokens = matcher.groupNodes();
      int numStart = matcher.start();
      int possibleNumEnd = -1;
      int lastUnitPos = -1;
View Full Code Here

Examples of edu.stanford.nlp.semgraph.semgrex.SemgrexMatcher.find()

    SemgrexPattern semgrex = SemgrexPattern.compile("{}=A <<nsubj {}=B");
    SemgrexMatcher matcher = semgrex.matcher(graph);
    // This will produce two results on the given tree: "likes" is an
    // ancestor of both "dog" and "my" via the nsubj relation
    while (matcher.find()) {
      System.err.println(matcher.getNode("A") + " <<nsubj " + matcher.getNode("B"));
    }
  }
}
View Full Code Here

Examples of edu.stanford.nlp.trees.tregex.TregexMatcher.find()

    tree.indexLeaves();
    SemanticGraph dependency = s.get(SemanticGraphCoreAnnotations.CollapsedDependenciesAnnotation.class);

    TregexPattern tgrepPattern = npOrPrpMentionPattern;
    TregexMatcher matcher = tgrepPattern.matcher(tree);
    while (matcher.find()) {
      Tree t = matcher.getMatch();
      List<Tree> mLeaves = t.getLeaves();
      int beginIdx = ((CoreLabel)mLeaves.get(0).label()).get(CoreAnnotations.IndexAnnotation.class)-1;
      int endIdx = ((CoreLabel)mLeaves.get(mLeaves.size()-1).label()).get(CoreAnnotations.IndexAnnotation.class);
      if (",".equals(sent.get(endIdx-1).word())) { endIdx--; } // try not to have span that ends with ,
View Full Code Here

Examples of edu.washington.cs.knowitall.sequence.LayeredTokenMatcher.find()

  @Test
  public void testMatcher1() throws SequenceException {
    String patternStr = "There_w are_w CD_p [B-NP_n I-NP_n]+ (IN_p [B-NP_n I-NP_n]+)*";
    LayeredTokenPattern pat = new LayeredTokenPattern(patternStr);
    LayeredTokenMatcher m = pat.matcher(seq);
    assertTrue(m.find());
    assertEquals(0, m.start());
    assertEquals(6, m.end());
  }
 
  @Test
View Full Code Here

Examples of es.ua.dccia.datos.ActualizacionDao.find()

   
    public void modificarActualizacion(Actualizacion actualizacion) {
        EntityManager em = PersistenceManager.getInstance().createEntityManager();
        em.getTransaction().begin();
        ActualizacionDao adao = new ActualizacionDao(em);
        Actualizacion buscada = adao.find(actualizacion.getId());
        buscada.setFecha(new Date());
        buscada.setContenido(actualizacion.getContenido());
        adao.update(buscada);
        em.getTransaction().commit();
        em.close();       
View Full Code Here

Examples of es.ua.dccia.datos.PeticionDao.find()

        EntityManager em = PersistenceManager.getInstance().createEntityManager();
        em.getTransaction().begin();
        ActualizacionDao adao = new ActualizacionDao(em);
        actualizacion.setFecha(new Date());
        PeticionDao pdao = new PeticionDao(em);
        Peticion peticion = pdao.find(idPeticion);
        if (peticion==null)
            throw new EntidadNoEncontradaException("No existe la petición con id: " + idPeticion);
        actualizacion.setPeticion(peticion);
        adao.create(actualizacion);
        em.getTransaction().commit();
View Full Code Here

Examples of es.ua.dccia.datos.UsuarioDao.find()

    public Usuario getUsuario(String login) {
        EntityManager em = PersistenceManager.getInstance().createEntityManager();
        em.getTransaction().begin();
        UsuarioDao uDao = new UsuarioDao(em);
        Usuario usuario = uDao.find(login);
        //for (Peticion p: usuario.getPeticiones()) {
        //    p.getId();
        //}
        em.getTransaction().commit();
        em.close();
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.