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 com.cloud.utils.db.GenericSearchBuilder.Condition

            _conditions.add(condition);
            _specifiedAttrs.clear();
        }
       
        private void setParameters(String conditionName, Object... params) {
            assert _conditions.contains(new Condition(conditionName)) : "Couldn't find " + conditionName;
            _params.put(conditionName, params);
        }
    View Full Code Here

    Examples of com.cloud.utils.db.SearchBase.Condition

            return fields;
        }

        public void setParameters(String conditionName, Object... params) {
            assert _conditions.contains(new Condition(conditionName)) || _additionals.contains(new Condition(conditionName)) : "Couldn't find " + conditionName;
            _params.put(conditionName, params);
        }
    View Full Code Here

    Examples of com.codeborne.selenide.Condition

        $(By.name("rememberMe")).shouldNotBe(selected);
      }

      @Test
      public void userCanUseOrCondition() {
        Condition one_of_conditions = or("baskerville", text("Basker"), text("Walle"));
        $("#baskerville").shouldBe(one_of_conditions);

        Condition all_of_conditions = or("baskerville", text("Basker"), text("rville"));
        $("#baskerville").shouldBe(all_of_conditions);

        Condition none_of_conditions = or("baskerville", text("pasker"), text("wille"));
        $("#baskerville").shouldNotBe(none_of_conditions);
      }
    View Full Code Here

    Examples of com.crawljax.condition.Condition

        StateVertex state2 = new StateVertexImpl(2, "state2", "<table><div>state2</div></table>");
        StateVertex state3 = new StateVertexImpl(3, "state3", "<table><div>state2</div></table>");

        hit = false;
        ImmutableList<Invariant> iList =
                ImmutableList.of(new Invariant("Test123", new Condition() {

                  @Override
                  public boolean check(EmbeddedBrowser browser) {
                    hit = true;
                    return false;
    View Full Code Here

    Examples of com.dianping.cat.home.rule.entity.Condition

      private com.dianping.cat.home.rule.entity.Config buildDefaultConfig() {
        com.dianping.cat.home.rule.entity.Config config = new com.dianping.cat.home.rule.entity.Config();
        config.setStarttime("00:00");
        config.setEndtime("24:00");

        Condition condition = new Condition();
        condition.setAlertType(AlertLevel.WARNING);
        condition.setMinute(3);
        SubCondition minSuccessSubCondition = new SubCondition();

        minSuccessSubCondition.setType("MinVal").setText("95");
        condition.addSubCondition(minSuccessSubCondition);
        config.addCondition(condition);

        return config;
      }
    View Full Code Here

    Examples of com.dotcms.repackage.org.tuckey.web.filters.urlrewrite.Condition

            forwardRule.setFrom( "^/example/url/condition/$" );
            forwardRule.setToType( "forward" );
            forwardRule.setTo( "/app/helloworld?browser=chrome" );
            forwardRule.setName( "ExampleTuckeyCondition" );
            //Create a Condition for this rule
            Condition condition = new Condition();
            condition.setName( "user-agent" );
            condition.setValue( "Chrome/*.*" );
            forwardRule.addCondition( condition );

            //Register the tuckey rewrite rule
            addRewriteRule( forwardRule );
        }
    View Full Code Here

    Examples of com.eclipsesource.tabris.passepartout.Condition

      }

      @Test
      public void testCompliesNotWithOneFalseConditions() {
        QueryVerifier verifier = new QueryVerifier( createEnvironment() );
        Condition condition = mock( Condition.class );
        doReturn( Boolean.FALSE ).when( condition ).compliesWith( any( UIEnvironment.class ) );
        QueryImpl query = new QueryImpl( new AlwaysTrueContidtion() );

        boolean complies = verifier.complies( query.and( condition ) );
    View Full Code Here

    Examples of com.google.code.tempusfugit.temporal.Condition

                }
            };
        }

      public static Condition condition(final Callable<Boolean> callable ) {
        return new Condition() {
          @Override
          public boolean isSatisfied() {
            try {
              return callable.call();
            } catch (Exception e ) {
    View Full Code Here

    Examples of com.google.gwt.dev.cfg.Condition

      }

      private Condition computeActiveCondition(TreeLogger logger,
          BindingProperty prop) throws BadPropertyValueException {
        // Last-one-wins
        Condition winner = null;
        for (Condition cond : prop.getConditionalValues().keySet()) {
          try {
            if (cond.isTrue(logger, this, null, null)) {
              winner = cond;
            }
    View Full Code Here

    Examples of com.googlecode.gql4j.GqlQuery.Condition

        assertEquals(new DecimalEvaluator("1"), parser("1").value().r);
      }
     
      @Test
      public void testCondition_1() throws RecognitionException {
        Condition expected = new Condition("a", FilterOperator.EQUAL, new DecimalEvaluator("1"));   
        Condition actual = parser("a=1").condition().r;
       
        assertEquals(expected, actual);
      }
    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.