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.sonatype.nexus.client.core.Condition

       *
       * @return {@code true} if all passed in conditions match.
       */
      public static Condition and(final Condition... conditions) {
        Check.argument(conditions.length > 1, "At least two operators expected!");
        return new Condition()
        {
          @Override
          public boolean isSatisfiedBy(final NexusStatus status) {
            for (Condition condition : conditions) {
              if (!condition.isSatisfiedBy(status)) {
                return false;
              }
            }
            return true;
          }

          private static final String KW = " AND ";

          @Override
          public String explainNotSatisfied(final NexusStatus status) {
            final Condition lastCondition = conditions[conditions.length - 1];
            final StringBuilder explanation = new StringBuilder("(");
            for (Condition condition : conditions) {
              explanation.append(condition.explainNotSatisfied(status));
              if (condition != lastCondition) {
                explanation.append(KW);
    View Full Code Here

    Examples of org.springframework.context.annotation.Condition

        private final String condition;

        private final String message;

        public MessageAndCondition(ConditionAndOutcome conditionAndOutcome) {
          Condition condition = conditionAndOutcome.getCondition();
          ConditionOutcome outcome = conditionAndOutcome.getOutcome();
          this.condition = ClassUtils.getShortName(condition.getClass());
          if (StringUtils.hasLength(outcome.getMessage())) {
            this.message = outcome.getMessage();
          }
          else {
            this.message = (outcome.isMatch() ? "matched" : "did not match");
    View Full Code Here

    Examples of org.springmodules.validation.util.condition.Condition

            // validation and recursively calling this method on them.
            CascadeValidation[] cascadeValidations = configuration.getCascadeValidations();
            BeanWrapper wrapper = wrapBean(obj);
            for (int i=0; i<cascadeValidations.length; i++) {
                CascadeValidation cascadeValidation = cascadeValidations[i];
                Condition applicabilityCondition = cascadeValidation.getApplicabilityCondition();

                if (!applicabilityCondition.check(obj)) {
                    continue;
                }

                String propertyName = cascadeValidation.getPropertyName();
                Class propertyType = wrapper.getPropertyType(propertyName);
    View Full Code Here

    Examples of org.teiid.language.Condition

       
        /**
         * @return
         */
        static Set getTickers(Select query) throws TranslatorException {
            Condition crit = query.getWhere();
            if(crit == null) {
                throw new TranslatorException(YahooPlugin.Util.getString("YahooExecution.Must_have_criteria")); //$NON-NLS-1$
            }
            return TickerCollectorVisitor.getTickers(crit);
        }
    View Full Code Here

    Examples of org.teiid.query.processor.xml.Condition

            // every criteria node has its own program..
            Program childProgram = new Program();
            IfInstruction ifInst = (IfInstruction)context.get(node.getParentNode());
           
            if (node.getCriteria() != null) {
                Condition condition = new CriteriaCondition(node.getCriteriaNode(), childProgram);
                ifInst.addCondition(condition);           
            }
           
            if (node.isDefault()) {
                DefaultCondition defCondition = new DefaultCondition(childProgram);
    View Full Code Here

    Examples of org.uengine.kernel.Condition

            Evaluate eval = new Evaluate(pv, cond, null);
            ConditionTable.this.setValueAt(eval, selectedRow, selectedColumn);
          }
        }else{
          Role role = (Role)roleinput.getValue();
          Condition roleExist = new RoleExist(role);
         
          if(roleExistOrNotExist.getSelectedIndex()> 0){
            roleExist = new Not(roleExist);
          }
         
    View Full Code Here

    Examples of org.w3c.css.sac.Condition

            case LexicalUnits.ANY:
                next();
            default:
                result = selectorFactory.createElementSelector(null, null);
            }
            Condition cond = null;
            loop: for (;;) {
                Condition c = null;
                switch (current) {
                case LexicalUnits.HASH:
                    c = conditionFactory.createIdCondition
                        (scanner.getStringValue());
                    next();
    View Full Code Here

    Examples of org.w3c.flex.forks.css.sac.Condition

                if (result instanceof AbstractSelector) {
                    ((AbstractSelector) result).setLineNumber(currentLineNumber);
                }
            }

            Condition cond = null;
            loop: for (;;) {
                Condition c = null;
                switch (current) {
                case LexicalUnits.HASH:
                    c = conditionFactory.createIdCondition
                        (scanner.getStringValue());
                    next();
    View Full Code Here

    Examples of org.xorm.query.Condition

                    fromClause.append(", ");
                }
                fromClause.append(alias.getTable().getName())
                    .append(" ")
                    .append(alias.getName());
                Condition condition = selector.getCondition();
                if (condition != null) {

                    // Having to explicitly check this here is a bit kludgy
                    boolean outerJoin = false;
                    if (condition instanceof SimpleCondition) {
    View Full Code Here

    Examples of pojo.Condition

      }

      //get List Condition by id
      public Condition getInfoCondition(int id) {
        logger.debug("getListCondition by id start");
        Condition sp = null;
        Session session = HibernateUtil.getSessionFactory().openSession();
        try {
          sp = (Condition) session.get(Condition.class, id);
          logger.debug("getListCondition by id success");
        } catch (HibernateException ex) {
    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.