Examples of Condition

@version $Id: Condition.java,v 1.2 2008/01/22 14:50:05 kebernet Exp $ @author Robert "kebernet" Cooper
  • org.rzo.yajsw.condition.Condition
  • org.rzo.yajsw.nettyutils.Condition
  • org.sonar.api.issue.condition.Condition
    @since 3.6
  • org.sonatype.mavenbook.weather.model.Condition
  • org.sonatype.nexus.capability.Condition
    An evaluable condition.
  • org.sonatype.nexus.client.core.Condition
    A condition to be satisfied by Nexus status in order for Nexus client to connect. @since 2.1
  • org.springframework.context.annotation.Condition
    A single {@code condition} that must be {@linkplain #matches matched} in orderfor a component to be registered.

    Conditions are checked immediately before the bean-definition is due to be registered and are free to veto registration based on any criteria that can be determined at that point.

    Conditions must follow the same restrictions as {@link BeanFactoryPostProcessor}and take care to never interact with bean instances. For more fine-grained control of conditions that interact with {@code @Configuration} beans consider the{@link ConfigurationCondition} interface. @author Phillip Webb @since 4.0 @see ConfigurationCondition @see Conditional @see ConditionContext

  • org.springmodules.validation.util.condition.Condition
    Represents a instantCondition that can be checked against an object. @author Uri Boness
  • org.teiid.language.Condition
    Represents criteria, which is also a boolean expression
  • org.teiid.query.processor.xml.Condition
    This is a condition which can be evaluated, and which supplies a Program instance which should act as the resulting sub Program to be run if the condition evaluates to true.
  • org.uengine.kernel.Condition
    @author Jinyoung Jang
  • org.w3c.css.sac.Condition
    @version $Revision: 1.3 $ @author Philippe Le Hegaret
  • org.w3c.flex.forks.css.sac.Condition
    @version $Revision: 1.3 $ @author Philippe Le Hegaret
  • org.xorm.query.Condition
  • pojo.Condition
    Condition generated by hbm2java
  • railo.transformer.bytecode.statement.Condition
  • robocode.Condition
    Condition is used to define custom {@link AdvancedRobot#waitFor(Condition) waitFor(Condition)} and custom events for an {@link AdvancedRobot}. The code below is taken from the sample robot named {@code sample.Target}. See the {@code sample/Target.java} for details.
     addCustomEvent( new Condition("triggerhit") { public boolean test() { return (getEnergy() <= trigger); }; } ); 
    You should note that by extending Condition this way, you are actually creating an inner class -- so if you distribute your robot, there will be multiple class files. (i.e. {@code Target$1.class}) @see AdvancedRobot#waitFor(Condition) @see AdvancedRobot#addCustomEvent(Condition) @see AdvancedRobot#removeCustomEvent(Condition) @see AdvancedRobot#onCustomEvent(CustomEvent) @author Mathew A. Nelson (original) @author Flemming N. Larsen (contributor) @author Nathaniel Troutman (contributor)
  • solver.constraints.nary.alldifferent.conditions.Condition
    A condition over integer variables

  • Examples of org.apache.tools.ant.taskdefs.condition.Condition

            }
            if (countConditions() < 1) {
                throw new BuildException("You must nest a condition into "
                                         + getTaskName());
            }
            Condition c = (Condition) getConditions().nextElement();

            long savedMaxWaitMillis = maxWaitMillis;
            long savedCheckEveryMillis = checkEveryMillis;
            try {
                maxWaitMillis *= maxWaitMultiplier;
                checkEveryMillis *= checkEveryMultiplier;
                long start = System.currentTimeMillis();
                long end = start + maxWaitMillis;

                while (System.currentTimeMillis() < end) {
                    if (c.eval()) {
                        processSuccess();
                        return;
                    }
                    try {
                        Thread.sleep(checkEveryMillis);
    View Full Code Here

    Examples of org.apache.uima.simpleserver.config.Condition

      // Process a simple, atomic filter.
      private static final SimpleFilter readSimpleFilter(SimpleFilterType filterBean)
          throws SimpleServerException {
        List<String> path = parseFeaturePath(filterBean.getFeaturePath());
        Condition condition = readCondition(filterBean.getOperator(), filterBean.getValue());
        return ConfigFactory.newSimpleFilter(path, condition);
      }
    View Full Code Here

    Examples of org.beangle.model.query.builder.Condition

         */
        public static void bindValues(final Query query, final List<Condition> conditions) {
          int position = 0;
          boolean hasInterrogation = false; // 含有问号
          for (final Iterator<Condition> iter = conditions.iterator(); iter.hasNext();) {
            final Condition condition = (Condition) iter.next();
            if (StringUtils.contains(condition.getContent(), "?")) {
              hasInterrogation = true;
            }
            if (hasInterrogation) {
              for (final Iterator<?> iterator = condition.getParams().iterator(); iterator.hasNext();) {
                query.setParameter(position++, iterator.next());
              }
            } else {
              final List<String> paramNames = condition.getParamNames();
              for (int i = 0; i < paramNames.size(); i++) {
                final String name = paramNames.get(i);
                final Object value = condition.getParams().get(i);

                if (value.getClass().isArray()) {
                  query.setParameterList(name, (Object[]) value);
                } else if (value instanceof Collection<?>) {
                  query.setParameterList(name, (Collection<?>) value);
    View Full Code Here

    Examples of org.boris.expr.util.Condition

    {
        public Expr evaluate(Expr[] args) throws ExprException {
            assertArgCount(args, 2);
            // TODO assert first argument as reference
            ExprArray array = asArray(args[0], true);
            Condition cond = Condition.valueOf(args[1]);
            if (cond == null)
                return ExprError.VALUE;
            Expr[] a = array.getArgs();
            int count = 0;
            for (int i = 0; i < a.length; i++) {
                if (cond.eval(a[i]))
                    count++;
            }
            return new ExprDouble(count);
        }
    View Full Code Here

    Examples of org.camunda.bpm.engine.impl.Condition

        String defaultSequenceFlow = (String) execution.getActivity().getProperty("default");
        Iterator<PvmTransition> transitionIterator = execution.getActivity().getOutgoingTransitions().iterator();
        while (outgoingSeqFlow == null && transitionIterator.hasNext()) {
          PvmTransition seqFlow = transitionIterator.next();
         
          Condition condition = (Condition) seqFlow.getProperty(BpmnParse.PROPERTYNAME_CONDITION);
          if ( (condition == null && (defaultSequenceFlow == null || !defaultSequenceFlow.equals(seqFlow.getId())) )
                  || (condition != null && condition.evaluate(execution)) ) {
            if (log.isLoggable(Level.FINE)) {
              log.fine("Sequence flow '" + seqFlow.getId() + " '"
                      + "selected as outgoing sequence flow.");
            }
            outgoingSeqFlow = seqFlow;
    View Full Code Here

    Examples of org.dbwiki.data.query.condition.Condition

            } catch (java.lang.NumberFormatException nfe) {
              throw new WikiQueryException(WikiQueryException.InvalidQueryStatement, "Invalid number format " + conditionToken.children().firstElement().value());
            }
            pathElement = new XPathComponent(entity, new IndexCondition(index));
          } else {
            Condition condition = null;
            if (conditionToken.children().size() > 1) {
              Conjunction conjunction = new Conjunction();
              for (int iCondition = 0; iCondition < conditionToken.children().size(); iCondition++) {
                conjunction.add(new ConditionGenerator().getCondition(entity, versionIndex, conditionToken.children().get(iCondition).children(), this));
              }
    View Full Code Here

    Examples of org.drools.decisiontable.model.Condition

        {
            Ruleset ruleSet = new Ruleset( "name" ); //$NON-NLS-1$
            Rule rule = new Rule( "rule", new Integer(1) ); //$NON-NLS-1$
            rule.setComment( "a comment" ); //$NON-NLS-1$

            Condition cond = new Condition( );
            cond.setSnippet( "System.currentTimeMillis() > 42 /* comment here */" );
            rule.addCondition( cond );

            Consequence cons = new Consequence( );
            cons.setSnippet( "System.out.println(\"yeah\");" );
            rule.addConsequence( cons );
    View Full Code Here

    Examples of org.drools.spi.Condition

                                      Rule rule) throws Exception
        {
            ConditionFactory conditionFactory = module.getConditionFactory( "condition" );
            DefaultConfiguration conditionConfiguration = new DefaultConfiguration( "test" + testNumber );
            conditionConfiguration.setText( (String) tests.get( testNumber ) );
            Condition condition = conditionFactory.newCondition( rule,
                                                                 this.ruleBaseContext,
                                                                 conditionConfiguration )[0];
            return condition.isAllowed( tuple );
        }
    View Full Code Here

    Examples of org.drools.template.model.Condition

            imp = (Import) ruleset.getImports().get( 2 );
            assertEquals( "lah.di.dah", imp.getClassName() );

            // check rules
            Rule rule = (Rule) ruleset.getRules().get( 0 );
            Condition cond = (Condition) rule.getConditions().get( 0 );
            assertEquals( "Foo(myObject.getColour().equals(red), myObject.size () > 12\\\")",
                    cond.getSnippet() );

            Consequence cons = (Consequence) rule.getConsequences().get( 0 );
            assertNotNull( cons );
            assertEquals( "myObject.setIsValid(Y);", cons.getSnippet() );

            rule = (Rule) ruleset.getRules().get( 5 );
            cond = (Condition) rule.getConditions().get( 1 );
            assertEquals( "myObject.size () > 7", cond.getSnippet() );
            cons = (Consequence) rule.getConsequences().get( 0 );
            assertEquals( "myObject.setIsValid(10-Jul-1974)", cons.getSnippet() );

        }
    View Full Code Here

    Examples of org.eclipse.bpel.model.Condition

       * <!-- begin-user-doc -->
       * <!-- end-user-doc -->
       * @generated
       */
      public NotificationChain basicSetCondition(Condition newCondition, NotificationChain msgs) {
        Condition oldCondition = condition;
        condition = newCondition;
        if (eNotificationRequired()) {
          ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BPELPackage.WHILE__CONDITION, oldCondition, newCondition);
          if (msgs == null) msgs = notification; else msgs.add(notification);
        }
    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.