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 at.bestsolution.efxclipse.tooling.decora.decoraDsl.condition

       * <!-- end-user-doc -->
       * @generated
       */
      public NotificationChain basicSetC(condition newC, NotificationChain msgs)
      {
        condition oldC = c;
        c = newC;
        if (eNotificationRequired())
        {
          ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DecoraDslPackage.FOR_REST_STATEMENT__C, oldC, newC);
          if (msgs == null) msgs = notification; else msgs.add(notification);
    View Full Code Here

    Examples of ch.njol.skript.lang.Condition

              items.add(new Loop(loopedExpr, (SectionNode) n));
              if (hadDelayBefore != Kleenean.TRUE && hasDelayBefore != Kleenean.FALSE)
                hasDelayBefore = Kleenean.UNKNOWN;
            } else if (StringUtils.startsWithIgnoreCase(name, "while ")) {
              final String l = "" + name.substring("while ".length());
              final Condition c = Condition.parse(l, "Can't understand this condition: " + l);
              if (c == null)
                continue;
              if (Skript.debug() || n.debug())
                Skript.debug(indentation + "while " + c.toString(null, true) + ":");
              final Kleenean hadDelayBefore = hasDelayBefore;
              items.add(new While(c, (SectionNode) n));
              if (hadDelayBefore != Kleenean.TRUE && hasDelayBefore != Kleenean.FALSE)
                hasDelayBefore = Kleenean.UNKNOWN;
            } else if (name.equalsIgnoreCase("else")) {
              if (items.size() == 0 || !(items.get(items.size() - 1) instanceof Conditional) || ((Conditional) items.get(items.size() - 1)).hasElseClause()) {
                Skript.error("'else' has to be placed just after an 'if' or 'else if' section");
                continue;
              }
              if (Skript.debug() || n.debug())
                Skript.debug(indentation + "else:");
              final Kleenean hadDelayAfterLastIf = hasDelayBefore;
              hasDelayBefore = hadDelayBeforeLastIf;
              ((Conditional) items.get(items.size() - 1)).loadElseClause((SectionNode) n);
              hasDelayBefore = hadDelayBeforeLastIf.or(hadDelayAfterLastIf.and(hasDelayBefore));
            } else if (StringUtils.startsWithIgnoreCase(name, "else if ")) {
              if (items.size() == 0 || !(items.get(items.size() - 1) instanceof Conditional) || ((Conditional) items.get(items.size() - 1)).hasElseClause()) {
                Skript.error("'else if' has to be placed just after another 'if' or 'else if' section");
                continue;
              }
              name = "" + name.substring("else if ".length());
              final Condition cond = Condition.parse(name, "can't understand this condition: '" + name + "'");
              if (cond == null)
                continue;
              if (Skript.debug() || n.debug())
                Skript.debug(indentation + "else if " + cond.toString(null, true));
              final Kleenean hadDelayAfterLastIf = hasDelayBefore;
              hasDelayBefore = hadDelayBeforeLastIf;
              ((Conditional) items.get(items.size() - 1)).loadElseIf(cond, (SectionNode) n);
              hasDelayBefore = hadDelayBeforeLastIf.or(hadDelayAfterLastIf.and(hasDelayBefore.and(Kleenean.UNKNOWN)));
            } else {
              if (StringUtils.startsWithIgnoreCase(name, "if "))
                name = "" + name.substring(3);
              final Condition cond = Condition.parse(name, "can't understand this condition: '" + name + "'");
              if (cond == null)
                continue;
              if (Skript.debug() || n.debug())
                Skript.debug(indentation + cond.toString(null, true) + ":");
              final Kleenean hadDelayBefore = hasDelayBefore;
              hadDelayBeforeLastIf = hadDelayBefore;
              items.add(new Conditional(cond, (SectionNode) n));
              hasDelayBefore = hadDelayBefore.or(hasDelayBefore.and(Kleenean.UNKNOWN));
            }
    View Full Code Here

    Examples of co.paralleluniverse.strands.Condition

        @Override
        public Object register(SelectAction<V> action) {
            if (action.isData())
                throw new UnsupportedOperationException("Send is not supported by DelayedValChanel");
            Condition sync = dv.getSync();
            if (sync == null) {
                if (!action.lease())
                    return null;
                action.setItem(dv.getValue());
                action.won();
                return null;
            }
            sync.register();
            return action;
        }
    View Full Code Here

    Examples of com.alibaba.citrus.service.form.Condition

        public boolean validate(Context context) {
            for (Validator validator : getValidators()) {
                if (validator instanceof When) {
                    When when = (When) validator;
                    Condition cond = when.condition;

                    if (cond.isSatisfied(context)) {
                        return when.validateInChoose(context);
                    }
                } else if (validator instanceof Otherwise) {
                    Otherwise ow = (Otherwise) validator;
                    return ow.validateInChoose(context);
    View Full Code Here

    Examples of com.alibaba.druid.stat.TableStat.Condition

            Column column = getColumn(expr);
            if (column == null) {
                return;
            }

            Condition condition = null;
            for (Condition item : this.getConditions()) {
                if (item.getColumn().equals(column) && item.getOperator().equals(operator)) {
                    condition = item;
                    break;
                }
            }

            if (condition == null) {
                condition = new Condition();
                condition.setColumn(column);
                condition.setOperator(operator);
                this.conditions.add(condition);
            }

            for (SQLExpr item : valueExprs) {
                Object value = SQLEvalVisitorUtils.eval(getDbType(), item, parameters, false);
                condition.getValues().add(value);
            }
        }
    View Full Code Here

    Examples of com.alibaba.wasp.plan.parser.Condition

        }

        byte[] primayKey = RowBuilder.build().genRowkey(primaryKeyPairs);
        DeleteAction action = new DeleteAction(wtableName, primayKey);
        if (context.isGenWholePlan()) {
          Condition entityGroupKeyCondition = ParserUtils.getCondition(table
              .getEntityGroupKey().getName(), eqConditions);
          // Get entityGroupLocation according to entity group key
          EntityGroupLocation entityGroupLocation = this.connection
              .locateEntityGroup(Bytes.toBytes(table.getTableName()), DruidParser
                  .convert(table.getColumn(entityGroupKeyCondition.getFieldName()),
                      entityGroupKeyCondition.getValue()));
          action.setEntityGroupLocation(entityGroupLocation);
        }
        List<DeleteAction> actions = new ArrayList<DeleteAction>();
        actions.add(action);
        DeletePlan deletePlan = new DeletePlan(actions);
    View Full Code Here

    Examples of com.amazonaws.auth.policy.Condition

                        values.add(elements.next().asText());
                    }
                } else {
                    values.add(fieldValue.asText());
                }
                conditions.add(new Condition().withType(conditionType)
                        .withConditionKey(field.getKey()).withValues(values));
            }
        }
    View Full Code Here

    Examples of com.amazonaws.services.dynamodb.model.Condition

      public void buildExpression(){
        AttributeValue hashAttrValue = buildKeyHashAttribute();
        if (hashAttrValue == null)
          throw new IllegalStateException("There is not a key schema defined.");
        if (DynamoDBQuery.getType().equals(RANGE_QUERY)){
          Condition newCondition = buildRangeCondition();
          buildQueryExpression(newCondition, hashAttrValue);
        }
        if (DynamoDBQuery.getType().equals(SCAN_QUERY))
          buildScanExpression(hashAttrValue);
      }
    View Full Code Here

    Examples of com.amazonaws.services.dynamodbv2.model.Condition

            Map<String, Condition> conditions = new HashMap<String, Condition>();
            for ( Method getter : reflector.getKeyGetters(obj.getClass()) ) {
                if ( getter.isAnnotationPresent(DynamoDBHashKey.class) ) {
                    conditions.put(
                            reflector.getAttributeName(getter),
                            new Condition().withComparisonOperator(ComparisonOperator.EQ).withAttributeValueList(
                                    getSimpleAttributeValue(getter, safeInvoke(getter, obj, (Object[])null))));
                }
            }
            return conditions;
        }
    View Full Code Here

    Examples of com.cloud.network.as.Condition

                List<LbCondition> lbConditions = lbAutoScalePolicy.getConditions();
                List<ConditionTO> conditionTOs = new ArrayList<ConditionTO>(lbConditions.size());
                for (LbCondition lbCondition : lbConditions) {
                    Counter counter = lbCondition.getCounter();
                    CounterTO counterTO = new CounterTO(counter.getName(), counter.getSource().toString(), "" + counter.getValue());
                    Condition condition = lbCondition.getCondition();
                    ConditionTO conditionTO = new ConditionTO(condition.getThreshold(), condition.getRelationalOperator().toString(), counterTO);
                    conditionTOs.add(conditionTO);
                }
                AutoScalePolicy autoScalePolicy = lbAutoScalePolicy.getPolicy();
                autoScalePolicyTOs.add(new AutoScalePolicyTO(autoScalePolicy.getId(), autoScalePolicy.getDuration(),
                        autoScalePolicy.getQuietTime(), autoScalePolicy.getAction(),
    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.