Examples of accept()


Examples of org.kie.marshalling.ObjectMarshallingStrategy.accept()

               
                ObjectMarshallingStrategy strategy = context.objectMarshallingStrategyStore.getStrategyObject( object );
                String strategyClassName = strategy.getClass().getName();
                stream.writeInt(-2); // backwards compatibility
                stream.writeUTF(strategyClassName);
                if ( strategy.accept( object ) ) {
                    strategy.write( stream,
                                    object );
                }
            }
View Full Code Here

Examples of org.locationtech.udig.catalog.IResolveDelta.accept()

        if (delta == null)
            return null;

        SearchResolveDeltaVisitor visitor = new SearchResolveDeltaVisitor(handle);
        try {
            delta.accept(visitor);
            return visitor.getFound();
        } catch (IOException e) {
            return null; // visitor obviously could not find anything
        }
    }
View Full Code Here

Examples of org.locationtech.udig.project.ui.internal.dragdrop.DropFilterAction.accept()

       
        AdaptingFilter aF = AdaptingFilterFactory.createAdaptingFilter(filter, sourceMap.getLayersInternal().get(0));                   
       
        final Layer layer = targetMap.getLayersInternal().get(0);
        action.init(null, null, ViewerDropLocation.NONE, layer, filter);
        assertTrue(action.accept());
        assertEquals(Filter.EXCLUDE, layer.getFilter());
        action.perform(new NullProgressMonitor());
        assertEquals(filter, layer.getFilter());
        layer.setFilter( null ); // Filter.EXCLUDE;
View Full Code Here

Examples of org.locationtech.udig.ui.IDropAction.accept()

            }else{
                data=concreteData.toArray();
            }
            IDropAction action = (IDropAction)element.createExecutableExtension("class"); //$NON-NLS-1$
            action.init(element, event, handler.getViewerLocation(), concreteTarget, data);
            if (action.accept()) {
                actions.add(action);
            }
        }

        private List<Object> findData( IConfigurationElement element ) {
View Full Code Here

Examples of org.locationtech.udig.ui.operations.OpFilter.accept()

               
                if( !(enablesFor instanceof LazyOpFilter) ){
                    enablesFor = new LazyOpFilter(item, enablesFor);
                }
               
                boolean accept = enablesFor.accept(selectedLayer);
                item.setEnabled(accept);
            }
        }
    }
View Full Code Here

Examples of org.mockito.asm.ClassReader.accept()

        {
            cr = new ClassReader(new FileInputStream(args[i]));
        } else {
            cr = new ClassReader(args[i]);
        }
        cr.accept(new ASMifierClassVisitor(new PrintWriter(System.out)),
                getDefaultAttributes(),
                flags);
    }

    /**
 
View Full Code Here

Examples of org.mockito.asm.signature.SignatureReader.accept()

        appendDescriptor(CLASS_SIGNATURE, signature);
        if (signature != null) {
            TraceSignatureVisitor sv = new TraceSignatureVisitor(access);
            SignatureReader r = new SignatureReader(signature);
            r.accept(sv);
            buf.append("// declaration: ")
                    .append(name)
                    .append(sv.getDeclaration())
                    .append('\n');
        }
View Full Code Here

Examples of org.more.asm.ClassReader.accept()

        visitor = new AopClassAdapter(visitor, this);
        //3.Read
        String resName = superClass.getName().replace(".", "/") + ".class";
        InputStream inStream = superClass.getClassLoader().getResourceAsStream(resName);
        ClassReader reader = new ClassReader(inStream);//创建ClassReader
        reader.accept(visitor, ClassReader.SKIP_DEBUG);
        return writer.toByteArray();
    }
    /**是否包含改变*/
    public boolean hasChange() {
        return (this.aopList == null) ? false : (!this.aopList.isEmpty());
View Full Code Here

Examples of org.mule.api.routing.filter.Filter.accept()

        Filter f = parser.parseFilterString("#[regex:foo bar]");
        assertNotNull(f);
        assertTrue(f instanceof ExpressionFilter);

        MuleMessage message = new DefaultMuleMessage("foo bar baz", muleContext);
        assertTrue(f.accept(message));


        f = parser.parseFilterString("#[regex:.* bar] AND #[wildcard:foo*]");
        assertNotNull(f);
        assertTrue(f instanceof AndFilter);
View Full Code Here

Examples of org.mule.api.routing.filter.ObjectFilter.accept()

            // }
            // subscription = ep.getAddress();
            // }

            ObjectFilter filter = createFilter(subscription);
            if (filter.accept(endpoint))
            {
                return true;
            }
        }
        return false;
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.