Examples of FilterType


Examples of co.nubetech.crux.model.FilterType

    assertEquals(expectedComp.getOffset(), returnedComparator.getOffset());
  }

  @Test
  public void testGetColumnFilterLongEquals() throws CruxException {
    FilterType type = new FilterType();
    type.setType("Equals");

    ValueType valueType = new ValueType();
    valueType.setClassName("java.lang.Long");

    ColumnAlias alias = new ColumnAlias();
View Full Code Here

Examples of com.github.dandelion.datatables.core.extension.feature.FilterType

        tmp = new HashMap<String, Object>();

        ColumnConfiguration columnConfiguration = column.getColumnConfiguration();

        Boolean filterable = ColumnConfig.FILTERABLE.valueFrom(columnConfiguration);
        FilterType filterType = ColumnConfig.FILTERTYPE.valueFrom(columnConfiguration);
        if (filterable != null && filterable && filterType != null) {

          switch (filterType) {
          case INPUT:
            tmp.put(DTConstants.DT_FILTER_TYPE, "text");
View Full Code Here

Examples of com.github.dandelion.datatables.core.extension.feature.FilterType

  @Override
  public void doProcess() {

    if (StringUtils.isNotBlank(stringifiedValue)) {

      FilterType filterType = null;

      try {
        filterType = FilterType.valueOf(stringifiedValue.toUpperCase());
      } catch (IllegalArgumentException e) {
        StringBuilder sb = new StringBuilder();
View Full Code Here

Examples of jp.vmi.selenium.selenese.log.CookieFilter.FilterType

            }
            if (cli.hasOption("cookie-filter")) {
                String cookieFilter = cli.getOptionValue("cookie-filter");
                if (cookieFilter.length() < 2)
                    throw new IllegalArgumentException("invalid cookie filter format: " + cookieFilter);
                FilterType filterType;
                switch (cookieFilter.charAt(0)) {
                case '+':
                    filterType = FilterType.PASS;
                    break;
                case '-':
View Full Code Here

Examples of org.apache.cxf.ws.eventing.FilterType

        sub.setDelivery(new DeliveryType());
        sub.getDelivery().getContent().add(new ObjectFactory().createNotifyTo(eventSink));

        // filter
        if (filter != null && filter.length() > 0) {
            sub.setFilter(new FilterType());
            sub.getFilter().getContent().add(filter);
        }

        return sub;
    }
View Full Code Here

Examples of org.apache.cxf.ws.eventing.FilterType

        subscribe.setExpires(exp);
        subscribe.setDelivery(delivery);
        subscribe.getDelivery().getContent().add(createDummyNotifyTo());


        subscribe.setFilter(new FilterType());
        subscribe.getFilter().getContent()
                .add("@^5this-is-not-a-valid-xpath-expression!!!*-/");

        try {
            eventSourceClient.subscribeOp(subscribe);
View Full Code Here

Examples of org.apache.cxf.ws.eventing.FilterType

    @Test
    public void simpleFilterEvaluationPositive() throws Exception {
        Reader reader = new CharArrayReader("<tt><in>1</in></tt>".toCharArray());
        Document doc = StaxUtils.read(reader);
        FilterType filter = new FilterType();
        filter.getContent().add("//tt");
        Assert.assertTrue(FilteringUtil.doesConformToFilter(doc.getDocumentElement(), filter));
    }
View Full Code Here

Examples of org.apache.cxf.ws.eventing.FilterType

    @Test
    public void simpleFilterEvaluationNegative() throws Exception {
        Reader reader = new CharArrayReader("<tt><in>1</in></tt>".toCharArray());
        Document doc = StaxUtils.read(reader);
        FilterType filter = new FilterType();
        filter.getContent().add("//ttx");
        Assert.assertFalse(FilteringUtil.doesConformToFilter(doc.getDocumentElement(), filter));
    }
View Full Code Here

Examples of org.apache.cxf.ws.eventing.FilterType

        eventSinkAddr.setValue(url);
        eventSinkERT.setAddress(eventSinkAddr);
        subscribe.setDelivery(new DeliveryType());
        subscribe.getDelivery().getContent().add(new ObjectFactory().createNotifyTo(eventSinkERT));
       
        subscribe.setFilter(new FilterType());
        subscribe.getFilter().getContent().add("//*[local-name()='fire' and "
                + "namespace-uri()='http://www.events.com']/location[text()='Canada']");


        eventSourceClient.subscribeOp(subscribe);
View Full Code Here

Examples of org.apache.cxf.ws.eventing.FilterType

        eventSinkAddr.setValue(url);
        eventSinkERT.setAddress(eventSinkAddr);
        subscribe.setDelivery(new DeliveryType());
        subscribe.getDelivery().getContent().add(new ObjectFactory().createNotifyTo(eventSinkERT));

        subscribe.setFilter(new FilterType());
        subscribe.getFilter().getContent().add("/*[local-name()='fire']/location[text()='Russia']");


        eventSourceClient.subscribeOp(subscribe);

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.