Examples of applies()


Examples of cascading.flow.planner.iso.expression.ElementExpression.applies()

      FlowElement flowElement = iterator.next();

      if( exclusions.contains( flowElement ) )
        continue;

      if( expression.applies( plannerContext, elementGraph, flowElement ) )
        foundElements.add( flowElement );
      }

    // we are only capturing Primary distinguished elements
    return new Match( matchExpression, elementGraph, null, foundElements, Collections.<Scope>emptySet() )
View Full Code Here

Examples of cascading.flow.planner.iso.expression.Expression.applies()

      !finderContext.getRequiredElements().isEmpty() )
      result = finderContext.isRequired( flowElement );
    else if( finderContext.isExcluded( flowElement ) || finderContext.isIgnored( flowElement ) )
      result = false;
    else
      result = expression.applies( plannerContext, elementGraph.getDelegate(), flowElement );

    if( LOG.isDebugEnabled() && result )
      LOG.debug( "compatible nodes: {} with {}", flowElement, expression );

    return result;
View Full Code Here

Examples of cascading.flow.planner.iso.expression.ScopeExpression.applies()

      // test ALL
      if( matcher.appliesToAllPaths() )
        {
        for( Scope scope : scopes )
          {
          if( !matcher.applies( plannerContext, elementGraph, scope ) )
            return null;
          }

        return scopes;
        }
View Full Code Here

Examples of cascading.flow.planner.iso.expression.ScopeExpression.applies()

      if( matcher.appliesToAnyPath() )
        {
        for( Scope scope : scopes )
          {
          if( matcher.applies( plannerContext, elementGraph, scope ) )
            return Collections.singleton( scope );
          }

        return null;
        }
View Full Code Here

Examples of cascading.flow.planner.iso.expression.ScopeExpression.applies()

        ListIterator<Scope> iterator = scopes.listIterator();

        while( iterator.hasNext() )
          {
          if( !matcher.applies( plannerContext, elementGraph, iterator.next() ) )
            iterator.remove();
          }

        return scopes.isEmpty() ? null : scopes;
        }
View Full Code Here

Examples of cascading.flow.planner.iso.expression.ScopeExpression.applies()

      for( int j = 0; j < scopes.size(); j++ )
        {
        Scope scope = scopes.get( j );

        compat[ i ][ j ] = matcher.applies( plannerContext, elementGraph, scope );
        }
      }

    // all matchers must fire for a given permutation
    List<Integer> range = new ArrayList<>();
View Full Code Here

Examples of com.eviware.soapui.support.action.SoapUIAction.applies()

      else if( action instanceof SoapUIMultiAction )
      {
        List<ModelItem> targets = new ArrayList<ModelItem>();
        for( ModelItem target : modelItems )
        {
          if( action.applies( target ) )
          {
            targets.add( target );
          }
        }
View Full Code Here

Examples of com.eviware.soapui.support.action.SoapUIAction.applies()

                actionListAction.setEnabled(mapping.isEnabled());
                prevWasSeparator = false;
            } else if (action instanceof SoapUIMultiAction) {
                List<ModelItem> targets = new ArrayList<ModelItem>();
                for (ModelItem target : modelItems) {
                    if (action.applies(target)) {
                        targets.add(target);
                    }
                }

                if (targets.size() > 0) {
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.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
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.