Examples of accepts()


Examples of org.apache.felix.sigil.common.model.IRequirementModelElement.accepts()

                public boolean visit(IModelElement element)
                {
                    if (element instanceof IRequirementModelElement)
                    {
                        IRequirementModelElement req = (IRequirementModelElement) element;
                        if (req.accepts(cap))
                        {
                            users.add(req);
                        }
                        return false;
                    }
View Full Code Here

Examples of org.apache.felix.sigil.common.model.IRequirementModelElement.accepts()

                    public boolean visit(IModelElement element)
                    {
                        if (element instanceof IRequirementModelElement)
                        {
                            IRequirementModelElement req = (IRequirementModelElement) element;
                            if (req.accepts(cap))
                            {
                                dependents.add(n);
                                return false;
                            }
                        }
View Full Code Here

Examples of org.apache.felix.sigil.common.model.IRequirementModelElement.accepts()

                        {
                            IRequirementModelElement r = (IRequirementModelElement) element;

                            for (ICapabilityModelElement c : capabilities)
                            {
                                if (r.accepts(c))
                                {
                                    dep[0] = true;
                                    break;
                                }
                            }
View Full Code Here

Examples of org.apache.felix.sigil.common.model.osgi.IRequiredBundle.accepts()

        IRequiredBundle host = headers.getFragmentHost();
        if (host != null)
        {
            for (ISigilBundle b : all)
            {
                if (host.accepts(b.getBundleCapability()))
                {
                    exports.addAll(b.getBundleInfo().getExports());
                    break;
                }
            }
View Full Code Here

Examples of org.apache.hadoop.metrics2.MetricsFilter.accepts()

    final MetricsFilter globFilter = newGlobFilter(conf);
    final MetricsFilter regexFilter = newRegexFilter(conf);
   
    // Test acceptance of the tag list: 
    assertEquals("accepts "+ tags, expectAcceptList, globFilter.accepts(tags));
    assertEquals("accepts "+ tags, expectAcceptList, regexFilter.accepts(tags));
   
    // Test results on each of the individual tags:
    int acceptedCount = 0;
    for (int i=0; i<tags.size(); i++) {
      MetricsTag tag = tags.get(i);
View Full Code Here

Examples of org.apache.muse.ws.notification.Filter.accepts()

            Filter next = (Filter)i.next();
           
            //
            // only one filter has to fail for the whole thing to fail
            //
            if (!next.accepts(message))
                return false;
        }
       
        return true;
    }
View Full Code Here

Examples of org.apache.muse.ws.notification.NotificationMessageListener.accepts()

                {
                    NotificationMessageListener listener = (NotificationMessageListener)i.next();
                   
                    try
                    {
                        if (listener.accepts(_messages[n]))
                            listener.process(_messages[n]);
                    }
                   
                    catch (Throwable error)
                    {
View Full Code Here

Examples of org.apache.sling.discovery.impl.topology.connector.wl.WhitelistEntry.accepts()

            return true;
        }

        for (Iterator<WhitelistEntry> it = whitelist.iterator(); it.hasNext();) {
            WhitelistEntry whitelistEntry = it.next();
            if (whitelistEntry.accepts(request)) {
                return true;
            }
        }
        logger.info("isWhitelisted: rejecting " + request.getRemoteAddr()
                + ", " + request.getRemoteHost());
View Full Code Here

Examples of org.archive.modules.deciderules.DecideRule.accepts()

                        CrawlURI caUri = CrawlURI.fromHopsViaString(read.substring(3));
                        if(scope!=null) {
                            //TODO:SPRINGY
///                            caUri.setStateProvider(controller.getSheetManager());
                            // skip out-of-scope URIs if so configured
                            if(!scope.accepts(caUri)) {
                                continue;
                            }
                        }
                        frontier.considerIncluded(caUri);
                        if (newJournal != null) {
View Full Code Here

Examples of org.bladerunnerjs.utility.ContentPathParserBuilder.accepts()

 
  public ScriptedContentPlugin(boolean outputAllBundles, String... urls) {
    this.outputAllBundles = outputAllBundles;
    ContentPathParserBuilder contentPathParserBuilder = new ContentPathParserBuilder();
    for (String url : urls) {
        contentPathParserBuilder.accepts(url).as(url);
      requestPaths.add(url);
    }
    contentPathParser = contentPathParserBuilder.build();
  }
 
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.