Examples of Finder


Examples of algorithm.Finder

  }

  @Test
  public void Returns_Empty_Results_When_Given_Empty_List() {
    List<Thing> list = new ArrayList<Thing>();
    Finder finder = new Finder(list);

    F result = finder.Find(FT.One);
    assertEquals(null, result.P1);

    assertEquals(null, result.P2);
  }
View Full Code Here

Examples of com.hp.hpl.jena.eyeball.Finder

        { super( "TestFinder" ); }

    @Test public void testEmptyConfig()
        {
        Model m = m( "" );
        try { new Finder( m ).getClassNames( "absent" ); }
        catch (NotFoundException e ) { assertEquals( "absent", e.getMessage() ); }
        }
View Full Code Here

Examples of com.hp.hpl.jena.eyeball.Finder

        }

    @Test public void testIrrelevantConfig()
        {
        Model m = m( "_x eye:shortName 'present'" );
        try { new Finder( m ).getClassNames( "absent" ); }
        catch (NotFoundException e ) { assertEquals( "absent", e.getMessage() ); }
        }
View Full Code Here

Examples of com.hp.hpl.jena.eyeball.Finder

        }

    @Test public void testNoClassesConfig()
        {
        Model m = m( "_x eye:shortName 'absent'" );
        assertEquals( new ArrayList<String>(), new Finder( m ).getClassNames( "absent" ) );
        }
View Full Code Here

Examples of com.hp.hpl.jena.eyeball.Finder

            + "; _y eye:inspector 'ys.Class'; _y eye:include _x" );
        assertEquals( setOfStrings( "xs.Class ys.Class" ), getNamesAsSet( m, "ben" ) );
        }

    protected Set<String> getNamesAsSet( Model m, String name )
        { return new HashSet<String>( new Finder( m ).getClassNames( name ) ); }
View Full Code Here

Examples of com.jeecms.common.hibernate3.Finder

  }

  private Finder byChannelPaths(String[] paths, Integer[] siteIds,
      Integer[] typeIds, Boolean titleImg, Boolean recommend,
      String title, int orderBy) {
    Finder f = Finder.create();
    f.append("select bean from Content bean join bean.channel channel");
    f.append(" join bean.contentExt as ext");
    int len = paths.length;
    if (len == 1) {
      f.append(" where channel.path=:path").setParam("path", paths[0]);
    } else {
      f.append(" where channel.path in (:paths)");
      f.setParamList("paths", paths);
    }
    if (siteIds != null) {
      len = siteIds.length;
      if (len == 1) {
        f.append(" and channel.site.id=:siteId");
        f.setParam("siteId", siteIds[0]);
      } else if (len > 1) {
        f.append(" and channel.site.id in (:siteIds)");
        f.setParamList("siteIds", siteIds);
      }
    }
    if (titleImg != null) {
      f.append(" and bean.hasTitleImg=:titleImg");
      f.setParam("titleImg", titleImg);
    }
    if (recommend != null) {
      f.append(" and bean.recommend=:recommend");
      f.setParam("recommend", recommend);
    }
    appendReleaseDate(f);
    appendTypeIds(f, typeIds);
    f.append(" and bean.status=" + ContentCheck.CHECKED);
    if (!StringUtils.isBlank(title)) {
      f.append(" and bean.contentExt.title like :title");
      f.setParam("title", "%" + title + "%");
    }
    appendOrder(f, orderBy);
    return f;
  }
View Full Code Here

Examples of com.linkedin.restli.server.annotations.Finder

    }
  }

  private static void addFinderResourceMethod(final ResourceModel model, final Method method)
  {
    Finder finderAnno = method.getAnnotation(Finder.class);
    if (finderAnno == null)
    {
      return;
    }

    String queryType = finderAnno.value();

    List<Parameter<?>> queryParameters =
        getParameters(model, method, ResourceMethod.FINDER);

    if (queryType != null)
View Full Code Here

Examples of com.sun.enterprise.tools.common.dd.ejb.Finder

        return result;
    }

    public void testFinders(OneOneFinders finders, Result result)
    {
        Finder finder[] = finders.getFinder();
        for (int i=0;i<finder.length;i++)
        {
            //method-name
            String methodName = finder[i].getMethodName();
            if(methodName.length()==0)
View Full Code Here

Examples of eas.miscellaneous.inspectJAR_RAM.Finder

         
          try {
        PluginFactory.createJAR("./TEMP-JAR---123.jar");
       
              SuperFinder f = new PluginFactory().new SuperFinder();
              Finder ff = new Finder(f);
              ff.inspectJar(new JarFile(new File("./TEMP-JAR---123.jar")));
             
              for (Class<?> c : f.classes) {
                  if (!c.isInterface() && !c.isAnonymousClass()
                          && !Modifier.toString(c.getModifiers()).contains("abstract")) {
                      PluginProperties p = c.getAnnotation(PluginProperties.class);
View Full Code Here

Examples of eas.miscellaneous.inspectJAR_RAM.Finder

        }

        // Find plugins in jar file.
        try {
            SuperFinder f = new PluginFactory().new SuperFinder();
            Finder ff = new Finder(f);
           
            ff.inspectJar();
           
            for (Class<?> c : f.classes) {
                if (!c.isInterface() && !c.isAnonymousClass()
                        && !Modifier.toString(c.getModifiers()).contains("abstract")) {
                    PluginProperties p = c.getAnnotation(PluginProperties.class);
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.