Examples of Filter


Examples of com.jayway.jsonpath.Filter

                "      \"address\" : {\"state\" : \"Nevada\"}\n" +
                "   } \n" +
                "]";


        Filter filter = filter(
                where("first-name").is("Jock")
                .and("address.state").is("Texas"));

        List<Map<String, Object>> jocksInTexas1 = JsonPath.read(json, "$[?]", filter);
        List<Map<String, Object>> jocksInTexas2  = JsonPath.read(json, "$[?(@.first-name == 'Jock' && @.address.state == 'Texas')]");
View Full Code Here

Examples of com.jengine.orm.model.query.filter.Filter

    }

    /* operation methods */

    public Filter eq(Object value) {
        return new Filter(fieldName, "eq", value);
    }
View Full Code Here

Examples of com.jidesoft.grid.Filter

        selector = Selector.getInstance(selectorString, extension);
      } else {
        selector = Selector.getInstance(selectorString);
      }

      Filter filter = new AbstractTableFilter() {
        /**
       *
       */
        private static final long serialVersionUID = 7094288732603611045L;

View Full Code Here

Examples of com.liferay.portal.kernel.configuration.Filter

  private static void _putMap(
    Map<Locale, String> map, String languageId, String key) {

    Locale locale = LocaleUtil.fromLanguageId(languageId);

    String value = PortletProps.get(key, new Filter(languageId));

    map.put(locale, value);
  }
View Full Code Here

Examples of com.linkedin.data.transform.filter.Filter

    {
      return EMPTY_DATAMAP;
    }
    try
    {
      new DataComplexProcessor(new Filter(), projection.getDataMap(), forProjection).run(false);
      return forProjection;
    }
    catch (Exception e)
    {
      throw new RuntimeException("Error projecting fields", e);
View Full Code Here

Examples of com.linkedin.r2.filter.Filter

  @Test
  public void testSetAndGet()
  {
    final ReplaceableFilter filter = getFilter();
    final Filter newFilter = new PassThroughFilter();

    Assert.assertTrue(!filter.getFilter().equals(newFilter));
    filter.setFilter(newFilter);
    Assert.assertEquals(newFilter, filter.getFilter());
  }
View Full Code Here

Examples of com.microsoft.windowsazure.services.servicebus.implementation.Filter

public class RuleInfoTest {

    @Test
    public void testGetSetFilter() {
        // Arrange
        Filter expectedFilter = new Filter();
        RuleInfo RuleInfo = new RuleInfo();

        // Act
        Filter actualFilter = RuleInfo.setFilter(expectedFilter).getFilter();

        // Assert
        assertEquals(expectedFilter, actualFilter);

    }
View Full Code Here

Examples of com.mxgraph.model.mxGraphModel.Filter

  /**
   * Returns the cells which are movable in the given array of cells.
   */
  public Object[] getMovableCells(Object[] cells)
  {
    return mxGraphModel.filterCells(cells, new Filter()
    {
      public boolean filter(Object cell)
      {
        return isCellMovable(cell);
      }
View Full Code Here

Examples of com.onpositive.commons.ui.tableeditor.Filter

              fValue = Boolean.TRUE;
            }
            if (fValue.equals("false")) {
              fValue = Boolean.FALSE;
            }
            result[a] = new Filter(fName, Filter.EQUAL, fValue);
            // TODO FIX ME
          }
        }
        return result;
      } else if (keyKindDetails != null) {
        String[] split = value.split(",");
        Filter[] result = new Filter[split.length];
        if (split.length <= keyKindDetails.length) {
          for (int a = 0; a < split.length; a++) {
            String name = keyKindDetails[a];

            String vl = split[a].trim();
            Object fValue = vl;
            if (fValue.equals("true")) {
              fValue = Boolean.TRUE;
            }
            if (fValue.equals("false")) {
              fValue = Boolean.FALSE;
            }
            if (fValue.equals("<null>")) {
              fValue = null;
            }
            // TODO FIX ME
            result[a] = new Filter(name, Filter.EQUAL, fValue);
          }
          return result;
        }
      }
      return null;
View Full Code Here

Examples of com.puppycrawl.tools.checkstyle.api.Filter

            if (child instanceof FileSetCheck) {
                final FileSetCheck fsc = (FileSetCheck) child;
                addFileSetCheck(fsc);
            }
            else if (child instanceof Filter) {
                final Filter filter = (Filter) child;
                addFilter(filter);
            }
            else if (child instanceof AuditListener) {
                final AuditListener listener = (AuditListener) child;
                addListener(listener);
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.