Examples of find()


Examples of jregex.Matcher.find()

                  continue;
                }
                 
                Pattern pat = child.getPattern();
                Matcher m = pat.matcher(txt);
                if(m.find()) {
                 
                    String tokText;
                    int pg = child.getParseGroup();
                    try {
                        tokText = m.group(pg);
View Full Code Here

Examples of kiss.XML.find()

    private synchronized XML rebuild(Path file) {
        long now = new Date().getTime();
        XML html = I.xml(file);

        // append live coding script
        html.find("script[src=\"application.js\"]").after(I
                .xml("script")
                .attr("type", "text/javascript")
                .attr("src", "live.js"));

        // ignore cache
View Full Code Here

Examples of labsis.usuario.dao.DaoUsuario.find()

  public Usuario login(String username, String password) {
    DaoUsuario du = null;
    try {
      du = new DaoUsuario();
      Usuario u = (Usuario) du.find(username);
      if (u != null && u.getSenha().equals(password)) {
        return u;
      }
    } catch (ClassNotFoundException e) {
      e.printStackTrace();
View Full Code Here

Examples of me.prettyprint.hom.EntityManagerImpl.find()

    o1.setBaseId(UUID.randomUUID());
    o1.setIntProp1(1);
    o1.setBoolProp1(Boolean.TRUE);
    o1.setLongProp1(123L);
    em.persist(o1);
    MyTestBean o2 = em.find(MyTestBean.class, o1.getBaseId());

    assertEquals(o1.getBaseId(), o2.getBaseId());
    assertEquals(o1.getIntProp1(), o2.getIntProp1());
    assertEquals(o1.isBoolProp1(), o2.isBoolProp1());
    assertEquals(o1.getLongProp1(), o2.getLongProp1());
View Full Code Here

Examples of me.taylorkelly.bigbrother.finder.Finder.find()

            if (split.length == 4 && Numbers.isNumber(split[1]) && Numbers.isNumber(split[2]) && Numbers.isNumber(split[3])) {
                World currentWorld = player.getWorld();
                Location loc = new Location(currentWorld, Double.parseDouble(split[1]), Double.parseDouble(split[2]), Double.parseDouble(split[3]));
                Finder finder = new Finder(loc, plugin.getServer().getWorlds(), plugin.worldManager, plugin);
                finder.addReciever(player);
                finder.find();
            } else if (split.length == 5 && Numbers.isNumber(split[1]) && Numbers.isNumber(split[2]) && Numbers.isNumber(split[3]) && Numbers.isNumber(split[4])) {
                World currentWorld = player.getWorld();
                Location loc = new Location(currentWorld, Double.parseDouble(split[1]), Double.parseDouble(split[2]), Double.parseDouble(split[3]));
                Finder finder = new Finder(loc, plugin.getServer().getWorlds(), plugin.worldManager, plugin);
                finder.setRadius(Double.parseDouble(split[4]));
View Full Code Here

Examples of modelet.model.Model.find()

  @Test
  public void test2() {
   
    Model model = ApplicationContextHelper.getBean("modelFindBeforeProxy");
    PagingElement pagingElement = ApplicationContextHelper.getBean("pagingElement");
    model.find("select * from sysusers", null);
    model.findWithPaging("select * from sysusers", null, pagingElement);
  }
}
View Full Code Here

Examples of net.helipilot50.stocktrade.framework.CircularList.find()

        /*
         * find the component in the list and return the next one
         */
        CircularList partners = getPartners((JComponent)comp);
        if (partners == null) return null;
        if (partners.find(comp)){
            partners.move();
            return (JComponent)partners.current();
        }
        return null;
    }
View Full Code Here

Examples of net.sf.hibernate.Session.find()

        HashMap names = new HashMap();
        try {
            Session session = GlobalSessionFactory.get().openSession();
            try {
                names.clear();
                List nameResults = session.find(namesQuery);
                Iterator iter = nameResults.iterator();
                while (iter.hasNext()) {
                    Object[] result = (Object[])iter.next();
                    names.put(result[1], result[0]);
                }
View Full Code Here

Examples of net.sf.nfp.mini.dao.ObservationDAO.find()

        Period period = (Period) periods.elementAt(i);
        Vector ids = periodDAO.getObservationIds(period);
        for (int j = 0; j < ids.size(); ++j) {
          controler.progressListner.setValue(i * 100 + (j * 100 / ids.size()));
          Integer id = (Integer) ids.elementAt(j);
          Observation ob = observationDAO.find(id.intValue());
          if (ob == null)
            continue;
          writer.print(i + 1);
          writer.print(',');
          writer.print(j + 1);
View Full Code Here

Examples of net.sf.rej.gui.DefaultMatcher.find()

            matcher = new DefaultMatcher() {
                @Override
        public boolean matches(String match) {
                    java.util.regex.Matcher matcher = pattern.matcher(match);
                    return matcher.find();
                }

                @Override
        public void addLink(final Link link) {
                  SwingUtilities.invokeLater(new Runnable() {
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.