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.jboss.messaging.core.contract.Condition

             }
            
             Queue queue = new MessagingQueue(mapping.getNodeId(), mapping.getQueueName(), mapping.getChannelId(),
                                              mapping.isRecoverable(), filter, true);
            
             Condition condition = conditionFactory.createCondition(mapping.getConditionText());
            
             addBindingInMemory(new Binding(condition, queue, false));
            
             if (mapping.isAllNodes())
             {
    View Full Code Here

    Examples of org.jboss.messaging.core.plugin.contract.Condition

          return maxSize;
       }
      
       public void setMaxSize(int maxSize) throws Exception
       {
          Condition cond = new JMSCondition(isQueue(), name);
         
          PostOffice postOffice = serverPeer.getPostOfficeInstance();
         
          Collection subs = postOffice.getBindingsForCondition(cond);
         
    View Full Code Here

    Examples of org.jboss.security.xacml.sunxacml.cond.Condition

                    Apply condition) {
            idAttr = id;
            effectAttr = effect;
            this.description = description;
            this.target = target;
            this.condition = new Condition(condition.getFunction(),
                                           condition.getChildren());
        }
    View Full Code Here

    Examples of org.jbpm.designer.expressioneditor.model.Condition

            String line = null;

            List<ConditionExpression> expectedExpressions = new ArrayList<ConditionExpression>();

            ConditionExpression expression = new ConditionExpression(ConditionExpression.AND_OPERATOR);
            Condition condition = new Condition("between");
            condition.addParam("a");
            condition.addParam("o\"ne");
            condition.addParam("two");
            expression.getConditions().add(condition);
            expectedExpressions.add(expression);

            expression = new ConditionExpression(ConditionExpression.AND_OPERATOR);
            condition = new Condition("isNull");
            condition.addParam("variable1");
            expression.getConditions().add(condition);
            expectedExpressions.add(expression);

            expression = new ConditionExpression(ConditionExpression.AND_OPERATOR);
            condition = new Condition("greaterThan");
            condition.addParam("variable2");
            condition.addParam(" the value ");
            expression.getConditions().add(condition);
            expectedExpressions.add(expression);

            expression = new ConditionExpression(ConditionExpression.AND_OPERATOR);
            condition = new Condition("isNull");
            condition.addParam("a");
            expression.getConditions().add(condition);
            expectedExpressions.add(expression);

            expression = new ConditionExpression(ConditionExpression.AND_OPERATOR);
            condition = new Condition("greaterOrEqualThan");
            condition.addParam("v");
            condition.addParam("one");
            expression.getConditions().add(condition);
            expectedExpressions.add(expression);


            while ((line = lineReader.readLine()) != null) {
    View Full Code Here

    Examples of org.jbpm.pvm.Condition

        execution.node = null;
        execution.fire(Transition.EVENT_TRANSITION_TAKE, transition);
       
        boolean wait = false;
       
        Condition waitCondition = transition.getWaitCondition();
        if (waitCondition!=null) {
          wait = waitCondition.evaluate(execution);
        }
       
        if (!wait) {
          execution.performAtomicOperation(ExecutionImpl.PROCEED_TO_DESTINATION);
        }
    View Full Code Here

    Examples of org.jbpm.pvm.internal.model.Condition

        // evaluate the conditions and find the transitions that should be forked
        List<Transition> forkingTransitions = new ArrayList<Transition>();
        List<Transition> outgoingTransitions = activity.getOutgoingTransitions();
        for (Transition transition: outgoingTransitions) {
          Condition condition = transition.getCondition();
          if  ( (condition==null)
                || (condition.evaluate(execution))
              ) {
            forkingTransitions.add(transition);
          }
        }
    View Full Code Here

    Examples of org.jooq.Condition

            Field object = fieldByName("ANY");

            // Check if a correct type was coerced correctly
            // ---------------------------------------------
            {
                Condition int_int = integer.eq(1);
                assertEquals("`TABLE1`.`ID1` = 1", r_refI().render(int_int));
                context.checking(new Expectations() {{
                    oneOf(statement).setInt(1, 1);
                }});

                assertEquals(2, b_ref().visit(int_int).peekIndex());
                context.assertIsSatisfied();
            }

            {
                Condition string_string = string.eq("1");
                assertEquals("`TABLE1`.`NAME1` = '1'", r_refI().render(string_string));
                context.checking(new Expectations() {{
                    oneOf(statement).setString(1, "1");
                }});

                assertEquals(2, b_ref().visit(string_string).peekIndex());
                context.assertIsSatisfied();
            }

            // Check if a convertible type was coerced correctly
            // -------------------------------------------------
            {
                Condition int_string = integer.eq("1");
                assertEquals("`TABLE1`.`ID1` = 1", r_refI().render(int_string));
                context.checking(new Expectations() {{
                    oneOf(statement).setInt(1, 1);
                }});

                assertEquals(2, b_ref().visit(int_string).peekIndex());
                context.assertIsSatisfied();

                Condition string_int = string.eq(1);
                assertEquals("`TABLE1`.`NAME1` = '1'", r_refI().render(string_int));
                context.checking(new Expectations() {{
                    oneOf(statement).setString(1, "1");
                }});

                assertEquals(2, b_ref().visit(string_int).peekIndex());
                context.assertIsSatisfied();
            }

            // Check if ...
            // ------------
            {
                Condition object_int = object.eq(1);
                assertEquals("`ANY` = 1", r_refI().render(object_int));
                context.checking(new Expectations() {{
                    oneOf(statement).setInt(1, 1);
                }});

                assertEquals(2, b_ref().visit(object_int).peekIndex());
                context.assertIsSatisfied();
            }

            {
                Condition object_string = object.eq("1");
                assertEquals("`ANY` = '1'", r_refI().render(object_string));
                context.checking(new Expectations() {{
                    oneOf(statement).setString(1, "1");
                }});

                assertEquals(2, b_ref().visit(object_string).peekIndex());
                context.assertIsSatisfied();
            }

            {
                Condition object_date = object.eq(Timestamp.valueOf("2012-12-21 15:30:00.0"));
                assertEquals("`ANY` = {ts '2012-12-21 15:30:00.0'}", r_refI().render(object_date));
                context.checking(new Expectations() {{
                    oneOf(statement).setTimestamp(1, Timestamp.valueOf("2012-12-21 15:30:00.0"));
                }});
    View Full Code Here

    Examples of org.nasutekds.server.admin.condition.Condition

                } catch (ManagedObjectNotFoundException e) {
                  Message msg = ERR_DSCFG_ERROR_GET_CHILD_MONFE.get(rufn);
                  throw new ClientException(LDAPResultCode.NO_SUCH_OBJECT, msg);
                }

                Condition condition = apd.getTargetIsEnabledCondition();
                while (!condition.evaluate(context, ref)) {
                  boolean isBadReference = true;

                  if (condition instanceof ContainsCondition) {
                    // Attempt to automatically enable the managed object.
                    ContainsCondition cvc = (ContainsCondition) condition;
    View Full Code Here

    Examples of org.nutz.dao.Condition

      @Test
      public void test_segment() {
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("name", "比尔盖茨");
        map.put("age", 50);
        Condition c1 = Cnd.wrap("name='${name}' AND age>${age}", map);
        assertEquals("name='比尔盖茨' AND age>50", c1.toSql(en));
       
        Worker worker = new Worker();
        worker.name = "老板";
        worker.age = 30;
        Condition c2 = Cnd.wrap("name like'${name}%' AND age>${age}", worker);
        assertEquals("name like'老板%' AND age>30", c2.toSql(en));
      }
    View Full Code Here

    Examples of org.ocpsoft.rewrite.config.Condition

       }

       @Override
       public void process(ClassContext context, ShiroRoleRequired annotation, HandlerChain chain)
       {
          Condition roleCondition = new ShiroRoleCondition(annotation.value());
          Condition conjunction = context.getRuleBuilder().getConditionBuilder().and(roleCondition);
          context.getRuleBuilder().when(conjunction);
          chain.proceed();
       }
    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.