Examples of applies()


Examples of org.apache.isis.viewer.wicket.ui.ComponentFactory.ApplicationAdvice.applies()

    public List<ComponentFactory> findComponentFactories(final ComponentType componentType, final IModel<?> model) {
        final Collection<ComponentFactory> componentFactoryList = componentFactoriesByType.get(componentType);
        final ArrayList<ComponentFactory> matching = new ArrayList<ComponentFactory>();
        for (final ComponentFactory componentFactory : componentFactoryList) {
            final ApplicationAdvice appliesTo = componentFactory.appliesTo(componentType, model);
            if (appliesTo.applies()) {
                matching.add(componentFactory);
            }
            if (appliesTo.exclusively()) {
                break;
            }
View Full Code Here

Examples of org.apache.isis.viewer.wicket.ui.ComponentFactory.ApplicationAdvice.applies()

    public List<ComponentFactory> findComponentFactories(final ComponentType componentType, final IModel<?> model) {
        final Collection<ComponentFactory> componentFactoryList = componentFactoriesByType.get(componentType);
        final ArrayList<ComponentFactory> matching = new ArrayList<ComponentFactory>();
        for (final ComponentFactory componentFactory : componentFactoryList) {
            final ApplicationAdvice appliesTo = componentFactory.appliesTo(componentType, model);
            if (appliesTo.applies()) {
                matching.add(componentFactory);
            }
            if (appliesTo.exclusively()) {
                break;
            }
View Full Code Here

Examples of org.apache.isis.viewer.wicket.ui.ComponentFactory.ApplicationAdvice.applies()

    public List<ComponentFactory> findComponentFactories(final ComponentType componentType, final IModel<?> model) {
        final Collection<ComponentFactory> componentFactoryList = componentFactoriesByType.get(componentType);
        final List<ComponentFactory> matching = Lists.newArrayList();
        for (final ComponentFactory componentFactory : componentFactoryList) {
            final ApplicationAdvice appliesTo = componentFactory.appliesTo(componentType, model);
            if (appliesTo.applies()) {
                matching.add(componentFactory);
            }
            if (appliesTo.exclusively()) {
                break;
            }
View Full Code Here

Examples of org.dbpedia.spotlight.spot.cooccurrence.filter.FilterPOS.applies()

        /**
         * Unigram (n = 1)
         */

        if(!filterPOS.applies(surfaceFormOccurrence)) {

          /**
           * The Surface Form is on the POS blacklist, i.e. a single adjective,
           * verb, etc.
           */
 
View Full Code Here

Examples of org.dbpedia.spotlight.spot.cooccurrence.filter.FilterPattern.applies()

          }else{
            decisions.add("Dropped by POS filter: " + surfaceFormOccurrence);

          }

        }else if(!filterPattern.applies(surfaceFormOccurrence)){
          decisions.add("Dropped by Pattern filter: " + surfaceFormOccurrence);
        }else{

                    SpotClassification spotClassification;
                    try {
View Full Code Here

Examples of org.dbpedia.spotlight.spot.cooccurrence.filter.FilterTermsize.applies()

                selectedOccurrences.add(surfaceFormOccurrence);
                continue;
            }


      if(unigramFilter.applies(surfaceFormOccurrence)) {

        /**
         * Unigram (n = 1)
         */

 
View Full Code Here

Examples of org.geowebcache.filter.parameters.ParameterFilter.applies()

        if (parameterFilter == null) {
            requestMistmatchTarget.append("no parameter filter exists for ").append(key);
            return false;
        }
        String parameter = request.getRawKvp().get(key);
        boolean applies = parameterFilter.applies(parameter);
        if (!applies) {
            requestMistmatchTarget.append(key).append(
                    " does not apply to parameter filter of the same name");
        }
        return applies;
View Full Code Here

Examples of org.xhtmlrenderer.css.sheet.PageRule.applies()

        Map marginBoxes = new HashMap();

        for (Iterator i = _pageRules.iterator(); i.hasNext(); ) {
            PageRule pageRule = (PageRule)i.next();
           
            if (pageRule.applies(pageName, pseudoPage)) {
                props.addAll(pageRule.getRuleset().getPropertyDeclarations());
                marginBoxes.putAll(pageRule.getMarginBoxes());
            }
        }
       
View Full Code Here

Examples of org.xhtmlrenderer.css.sheet.PageRule.applies()

        Map marginBoxes = new HashMap();

        for (Iterator i = _pageRules.iterator(); i.hasNext(); ) {
            PageRule pageRule = (PageRule)i.next();
           
            if (pageRule.applies(pageName, pseudoPage)) {
                props.addAll(pageRule.getRuleset().getPropertyDeclarations());
                marginBoxes.putAll(pageRule.getMarginBoxes());
            }
        }
       
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.