Examples of NotFilter


Examples of org.htmlparser.filters.NotFilter

            filter = new OrFilter (
                        new AndFilter (
                            cls,
                            new IsEqualFilter (this)),
                        new AndFilter ( // recurse up the parent chain
                            new NotFilter (cls), // but not past the first table
                            recursion));
            recursion.setParentFilter (filter);
            kids = kids.extractAllNodesThatMatch (
                // it's a row, and has this table as it's enclosing table
                new AndFilter (
View Full Code Here

Examples of org.jboss.wsf.framework.management.recording.NotFilter

      size = (Integer)server.getAttribute(oname, "Size");
      port.echo1("Test testAddRemoveFilter");
      port.echo2("Test testAddRemoveFilter");
      assertEquals(2, (Integer)server.getAttribute(oname, "Size") - size);
     
      NotFilter notFilter = new NotFilter(operationFilter);
      AndFilter andFilter = new AndFilter(operationFilter, notFilter);
     
      //Adding And filter...
      server.invoke(oname, "addFilter", new Object[] { andFilter }, new String[] { RecordFilter.class.getName() });
      size = (Integer)server.getAttribute(oname, "Size");
View Full Code Here

Examples of org.jivesoftware.smack.filter.NotFilter

    }

    @Override
    protected PacketFilter createFilter()
    {
        return new NotFilter(filter);
    }
View Full Code Here

Examples of org.jivesoftware.smack.filter.NotFilter

                    }
                    if (bWindow == false)
                    {
                        ChatWindow wndChat1 = new ChatWindow(xmppconnection, msg, contacts.getContact(msg.getFrom(), false));
                        wndChat1.setVisible(true);
                        andFilter.addFilter(new NotFilter(new FromContainsFilter(msg.getFrom())));
                        xmppconnection.addPacketListener(this, andFilter);
                    }
                }
            }
        };

        MouseListener mouseListener = new MouseAdapter() {
            public void mouseClicked(MouseEvent e) {
                if (e.getClickCount() == 2) {
                    String strTitle = null;
                    boolean bChatWindow = false;
                    //int index = lstContacts.locationToIndex(e.getPoint());
                    if (lstView.getSelectedValue() instanceof ListItem )
                    {
                        strTitle = ((ListItem) lstView.getSelectedValue()).getText();
                        //System.out.println("DRIN!");
                        for(Frame frame : JFrame.getFrames()){
                            if (frame.getTitle().equals(strTitle))
                            {
                                bChatWindow = true;
                                frame.setVisible(bChatWindow);
                                break;
                            }
                        }

                        if (bChatWindow == false)
                        {
                            if(contacts.getContact(strTitle,false) != null){
                                contact =  contacts.getContact(strTitle,false);}
                            else{
                                contact = contacts.getContact(strTitle,true);}
                           
                            ChatWindow wndChat = new ChatWindow(xmppconnection, contact);
                            Observer observer = wndChat;
                            contact.addObserver(observer);
                            andFilter.addFilter(new NotFilter(new FromContainsFilter(contact.getFullJID())));
                            xmppconnection.addPacketListener(pktListener, andFilter);
                            wndChat.setVisible(true);
                        }
                    }
                }
View Full Code Here

Examples of org.jivesoftware.smack.filter.NotFilter

    }

    @Override
    protected PacketFilter createFilter()
    {
        return new NotFilter(filter);
    }
View Full Code Here

Examples of org.mule.routing.filters.logic.NotFilter

        assertTrue(!filter.accept(new DefaultMuleMessage("blah.x.blah", muleContext)));
    }

    public void testNotFilter()
    {
        NotFilter notFilter = new NotFilter();
        assertNull(notFilter.getFilter());
        assertFalse(notFilter.accept(new DefaultMuleMessage("foo", muleContext)));
        assertFalse(notFilter.accept(new DefaultMuleMessage(null, muleContext)));

        WildcardFilter filter = new WildcardFilter("blah.blah.*");
        notFilter = new NotFilter(filter);
        assertNotNull(notFilter.getFilter());

        assertTrue(filter.accept(new DefaultMuleMessage("blah.blah.blah", muleContext)));
        assertTrue(!notFilter.accept(new DefaultMuleMessage("blah.blah.blah", muleContext)));

        notFilter = new NotFilter();
        notFilter.setFilter(filter);
        assertTrue(filter.accept(new DefaultMuleMessage("blah.blah.blah", muleContext)));
        assertTrue(!notFilter.accept(new DefaultMuleMessage("blah.blah.blah", muleContext)));
    }
View Full Code Here

Examples of org.mule.routing.filters.logic.NotFilter

                addEventHandlers(xpathBuilder, (Filter) itr.next());
            }
        }
        else if (filter instanceof NotFilter)
        {
            NotFilter f = (NotFilter) filter;

            addEventHandlers(xpathBuilder, f.getFilter());
        }
        else
        {
            logger.warn("Filter type " + filter.getClass().toString()
                           + " is not recognized by the SXC router. If it contains child "
View Full Code Here

Examples of org.mule.routing.filters.logic.NotFilter

        RestServiceWrapper restServiceWrapper = (RestServiceWrapper) component;
        assertEquals(restServiceWrapper.getServiceUrl(), SERVICE_URL);
        assertEquals(restServiceWrapper.getHttpMethod(), "POST");
        assertNotNull(restServiceWrapper.getFilter());
        assertEquals(NotFilter.class, restServiceWrapper.getFilter().getClass());
        NotFilter filter = (NotFilter) restServiceWrapper.getFilter();
        assertEquals(filter.getFilter().getClass(), WildcardFilter.class);
        WildcardFilter innerFilter = (WildcardFilter) filter.getFilter();
        assertEquals(innerFilter.getPattern(), "*xyz*");
        assertNotNull(restServiceWrapper.getPayloadParameterNames());
        assertEquals(restServiceWrapper.getPayloadParameterNames().size(), 2);
        assertEquals(restServiceWrapper.getPayloadParameterNames().get(0), "test-property1");
        assertEquals(restServiceWrapper.getPayloadParameterNames().get(1), "test-property2");
View Full Code Here

Examples of org.mule.routing.filters.logic.NotFilter

        RestServiceWrapper restServiceWrapper = (RestServiceWrapper) component;
        assertEquals(restServiceWrapper.getServiceUrl(), SERVICE_URL);
        assertEquals(restServiceWrapper.getHttpMethod(), "POST");
        assertNotNull(restServiceWrapper.getFilter());
        assertEquals(NotFilter.class, restServiceWrapper.getFilter().getClass());
        NotFilter filter = (NotFilter) restServiceWrapper.getFilter();
        assertEquals(filter.getFilter().getClass(), WildcardFilter.class);
        WildcardFilter innerFilter = (WildcardFilter) filter.getFilter();
        assertEquals(innerFilter.getPattern(), "*xyz*");
        assertNotNull(restServiceWrapper.getPayloadParameterNames());
        assertEquals(restServiceWrapper.getPayloadParameterNames().size(), 2);
        assertEquals(restServiceWrapper.getPayloadParameterNames().get(0), "test-property1");
        assertEquals(restServiceWrapper.getPayloadParameterNames().get(1), "test-property2");
View Full Code Here

Examples of org.mule.routing.filters.logic.NotFilter

        RestServiceWrapper restServiceWrapper = (RestServiceWrapper) component;
        assertEquals(restServiceWrapper.getServiceUrl(), FLOW_URL);
        assertEquals(restServiceWrapper.getHttpMethod(), "POST");
        assertNotNull(restServiceWrapper.getFilter());
        assertEquals(NotFilter.class, restServiceWrapper.getFilter().getClass());
        NotFilter filter = (NotFilter) restServiceWrapper.getFilter();
        assertEquals(filter.getFilter().getClass(), WildcardFilter.class);
        WildcardFilter innerFilter = (WildcardFilter) filter.getFilter();
        assertEquals(innerFilter.getPattern(), "*xyz*");
        assertNotNull(restServiceWrapper.getPayloadParameterNames());
        assertEquals(restServiceWrapper.getPayloadParameterNames().size(), 2);
        assertEquals(restServiceWrapper.getPayloadParameterNames().get(0), "test-property1");
        assertEquals(restServiceWrapper.getPayloadParameterNames().get(1), "test-property2");
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.