Examples of Filter


Examples of org.mongodb.meclipse.views.objects.Filter

    // disable save until everything matches
    setPageComplete(false);
  }

  public Filter getFilter() {
    return new Filter(nameText.getText(), queryText.getText());
  }
View Full Code Here

Examples of org.moresbycoffee.mbyhave8.filter.Filter

    }

    @Test
    public void specification_with_only_filtered_out_features_should_not_be_executable() {
        final Specification specification = specificationWith(featureWith(successScenario()).tag("Broken"));
        assertFalse(specification.isExecuteable(new Filter("~Broken")));

    }
View Full Code Here

Examples of org.mule.api.routing.filter.Filter

    }

    public void testTransformerOnGlobalEndpoint()
    {
        Flow flow1 = muleContext.getRegistry().lookupObject("flow1");
        Filter flow1Filter = ((MessageFilter) flow1.getMessageProcessors().get(0)).getFilter();
        Flow flow2 = muleContext.getRegistry().lookupObject("flow2");
        Filter flow2Filter = ((MessageFilter) flow2.getMessageProcessors().get(0)).getFilter();

        assertNotSame(flow1Filter, flow2Filter);
    }
View Full Code Here

Examples of org.nakedobjects.applib.Filter

    public Product findByCode(
            @Named("Code")
            final String code) {
        return firstMatch(
                Product.class,
                new Filter() {
                    public boolean accept(Object obj) {
                        Product pojo = (Product)obj;
                        return code.equals(pojo.getCode());
                    }
                },
View Full Code Here

Examples of org.neo4j.cypherdsl.query.Filter

    {
        Query.checkNull( name, "Name" );
        Query.checkNull( iterable, "Iterable" );
        Query.checkNull( predicateExpression, "Predicate" );

        return new Value( new Filter( name, iterable, predicateExpression ) );
    }
View Full Code Here

Examples of org.netbeans.junit.Filter

    protected void excludeTestIf(boolean condition, String reason, String... tests) {
        if (!condition)
            return;
        for (String test : tests)
            excludes.add(new Filter.IncludeExclude(test, reason));
        Filter filter = new Filter();
        filter.setExcludes(excludes.toArray(new Filter.IncludeExclude[excludes.size()]));
        setFilter(filter);
    }
View Full Code Here

Examples of org.netbeans.modules.j2ee.dd.api.web.Filter

        }

        protected Filter addFilter(WebApp webApp, String name, String classname,
                String pattern, Map<String, String> initParams,
                FilterMappingDispatcher mappingDispatcher) throws IOException {
            Filter filter = (Filter) createBean(webApp, "Filter");
            filter.setFilterName(name);
            filter.setFilterClass(classname);
           
            if(null != initParams){
                for(String paramName: initParams.keySet()){
                    InitParam ip = (InitParam) createBean(webApp, "InitParam");
                    ip.setParamName(paramName);
                    ip.setParamValue(initParams.get(paramName));
                   
                    filter.addInitParam(ip);
                }
            }
           
            webApp.addFilter(filter);
            if (pattern != null) {
View Full Code Here

Examples of org.olat.core.util.filter.Filter

    // automaticall by mysterious tiny code and cause problems in FIB questions. (OLAT-4363)
    // Use explicit return which create a P tag if you want a line break.
    if (newHtml.startsWith("<br />") && newHtml.length() > 6) newHtml = newHtml.substring(6);
    if (newHtml.endsWith("<br />") && newHtml.length() > 6) newHtml = newHtml.substring(0, newHtml.length()-6);
    // Remove any conditional comments due to strange behavior in test (OLAT-4518)
    Filter conditionalCommentFilter = FilterFactory.getConditionalHtmlCommentsFilter();
    newHtml = conditionalCommentFilter.filter(newHtml);
    //
    if (htmlContent.equals(newHtml)) {
      // No changes. Cancel editing.
      fireEvent(ureq, Event.CANCELLED_EVENT);
    } else {
View Full Code Here

Examples of org.omg.CosNotifyFilter.Filter

    public Filter get_filter(int filterId) throws FilterNotFound
    {
        Integer _key = new Integer(filterId);

        final Filter _filter;

        synchronized (filtersLock_)
        {
            _filter = (Filter) filters_.get(_key);
        }
View Full Code Here

Examples of org.onelab.filter.Filter

   * If the HStore already exists, it will read in the bloom filter saved
   * previously. Otherwise, it will create a new bloom filter.
   */
  private Filter loadOrCreateBloomFilter() throws IOException {
    Path filterFile = new Path(filterDir, BLOOMFILTER_FILE_NAME);
    Filter bloomFilter = null;
    if(fs.exists(filterFile)) {
      if (LOG.isDebugEnabled()) {
        LOG.debug("loading bloom filter for " + this.storeName);
      }
     
      BloomFilterDescriptor.BloomFilterType type =
        family.getBloomFilter().filterType;

      switch(type) {
     
      case BLOOMFILTER:
        bloomFilter = new BloomFilter();
        break;
       
      case COUNTING_BLOOMFILTER:
        bloomFilter = new CountingBloomFilter();
        break;
       
      case RETOUCHED_BLOOMFILTER:
        bloomFilter = new RetouchedBloomFilter();
        break;
     
      default:
        throw new IllegalArgumentException("unknown bloom filter type: " +
            type);
      }
      FSDataInputStream in = fs.open(filterFile);
      try {
        bloomFilter.readFields(in);
      } finally {
        fs.close();
      }
    } else {
      if (LOG.isDebugEnabled()) {
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.