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.olat.course.condition.Condition

       
        // Visibility and no-access explanation component   
        visibilityVc = this.createVelocityContainer("visibilityedit");

        // Visibility precondition
        Condition visibCondition = luNode.getPreConditionVisibility();
        visibilityCondContr = new ConditionEditController(ureq, getWindowControl(), groupMgr, visibCondition,
            "visibilityConditionForm", AssessmentHelper.getAssessableNodes(editorModel, luNode), euce);
        //set this useractivity logger for the visibility condition controller
        this.listenTo(visibilityCondContr);
        visibilityVc.put("visibilityCondition", visibilityCondContr.getInitialComponent());
    View Full Code Here

    Examples of org.opendope.conditions.Condition

        if (conditionId != null) {

          log.info("Processing Conditional: " + tag.getVal());

          // At present, this only handles simple conditions
          Condition c = ConditionsPart.getConditionById(conditions,
              conditionId);
          if (c == null) {
            log.error("Missing condition " + conditionId);
          }

          if ( c.evaluate(wordMLPackage, customXmlDataStorageParts, conditions, xPaths) ) {
            log.debug("so keeping");

            List<Object> newContent = new ArrayList<Object>();
            newContent.add(sdt);
            return newContent;
    View Full Code Here

    Examples of org.openstreetmap.josm.gui.mappaint.mapcss.Condition

             * Determines the {@code index}-th key/value/tag (depending on {@code type}) of the
             * {@link org.openstreetmap.josm.gui.mappaint.mapcss.Selector.GeneralSelector}.
             */
            static String determineArgument(Selector.GeneralSelector matchingSelector, int index, String type) {
                try {
                    final Condition c = matchingSelector.getConditions().get(index);
                    final Tag tag = c instanceof Condition.KeyCondition
                            ? ((Condition.KeyCondition) c).asTag()
                            : c instanceof Condition.SimpleKeyValueCondition
                            ? ((Condition.SimpleKeyValueCondition) c).asTag()
                            : c instanceof Condition.KeyValueCondition
    View Full Code Here

    Examples of org.osgi.service.condpermadmin.Condition

                    // TODO: check whether this is correct!
                    break;
                }
                try
                {
                    Condition condition = null;
                    boolean add = false;
                    Class clazz = Class.forName(m_conditionInfos[i].getType());

                    synchronized (m_conditions)
                    {
                        if (m_conditions[i] == null)
                        {
                            m_conditions[i] = createCondition(m_module.getBundle(),
                                clazz, m_conditionInfos[i]);
                        }
                        condition = m_conditions[i];
                    }

                    Object current = m_conditionStack.get();
                    if (current != null)
                    {
                        if (current instanceof HashSet)
                        {
                            if (((HashSet) current).contains(clazz))
                            {
                                return false;
                            }
                        }
                        else
                        {
                            if (current == clazz)
                            {
                                return false;
                            }
                        }
                    }

                    if (condition.isPostponed())
                    {
                        if (check && !permissions.implies(permission, null))
                        {
                            return false;
                        }
                        else
                        {
                            check = false;
                        }
                        posts.add(new Object[] { condition, new Integer(i) });
                    }
                    else
                    {

                        if (current == null)
                        {
                            m_conditionStack.set(clazz);
                        }
                        else
                        {
                            if (current instanceof HashSet)
                            {
                                if (((HashSet) current).contains(clazz))
                                {
                                    return false;
                                }
                                ((HashSet) current).add(clazz);
                            }
                            else
                            {
                                if (current == clazz)
                                {
                                    return false;
                                }
                                HashSet frame = new HashSet();
                                frame.add(current);
                                frame.add(clazz);
                                m_conditionStack.set(frame);
                                current = frame;
                            }
                        }
                        try
                        {
                            boolean mutable = condition.isMutable();
                            boolean result = condition.isSatisfied();

                            if (!mutable
                                && ((condition != Condition.TRUE) && (condition != Condition.FALSE)))
                            {
                                synchronized (m_conditions)
    View Full Code Here

    Examples of org.rometools.feed.module.yahooweather.types.Condition

            Element condition = element.getChild("condition", WeatherModuleParser.NS);

            if(condition != null) {
                try {
                    Condition c = new Condition(condition.getAttributeValue("text"),
                            ConditionCode.fromCode(Integer.parseInt(
                                    condition.getAttributeValue("code"))),
                            Integer.parseInt(condition.getAttributeValue("temp")),
                            LONG_DATE.parse(condition.getAttributeValue("date")
                                                     .replaceAll("pm", "PM")
    View Full Code Here

    Examples of org.rzo.yajsw.condition.Condition

        if (_timer == null)
          _timer = TimerFactory.createTimer(_config, this);
        _timer.init();
        if (_condition == null)
          _condition = new Condition(_config, this, getWrapperLogger());
        _condition.init();
        _restartCount = 0;

        // in case of active triggers control == LOOSE
        if (_timer.isHasTrigger() || _condition.isHasTrigger())
    View Full Code Here

    Examples of org.rzo.yajsw.nettyutils.Condition

        ChannelPipeline pipeline = pipeline(); // Note the static import.
        if (_debug)
          pipeline.addLast("logging1", new LoggingFilter(_controller.getLog(), "controller"));

        // allow new connections only if state != LOGGED_ON
        pipeline.addLast("checkWaiting", new ConditionFilter(new Condition()
        {
          public boolean isOk(ChannelHandlerContext ctx, ChannelEvent e)
          {
            boolean result = true;
            int currentState = _controller.getState();
            if (currentState == JVMController.STATE_LOGGED_ON)
            {
              _controller.getLog().info("app already logged on -> rejecting new connedction");
              result = false;
            }
            return result;
          }
        }));

        // create a firewall allowing only localhosts to connect
        WhitelistFilter firewall = new WhitelistFilter();
        try
        {
          firewall.allowAll(InetAddress.getAllByName("127.0.0.1"));
          firewall.allow(InetAddress.getLocalHost());
          pipeline.addLast("firewall", firewall);
        }
        catch (UnknownHostException e)
        {
          _controller.getLog().throwing(JVMController.class.getName(), "start", e);
        }

        // add a framer to split incoming bytes to message chunks
        pipeline.addLast("framer", new DelimiterBasedFrameDecoder(8192, true, Delimiters.nulDelimiter()));

        // add messge codec
        pipeline.addLast("messageEncoder", new MessageEncoder());
        pipeline.addLast("messageDecoder", new MessageDecoder());

        if (_controller.isDebug())
        {
          pipeline.addLast("logging", new LoggingFilter(_controller.getLog(), "controller"));
          _controller.getLog().info("Logging ON");
        }

        // if we found our partner close all other open connections
        pipeline.addLast("removeConnected", new ChannelGroupFilter(new Condition()
        {
          public boolean isOk(ChannelHandlerContext ctx, ChannelEvent e)
          {
            boolean result = false;
            if (e instanceof MessageEvent)
    View Full Code Here

    Examples of org.sonar.api.issue.condition.Condition

      private final IssueUpdater issueUpdater;

      public SetSeverityAction(IssueUpdater issueUpdater) {
        super(KEY);
        this.issueUpdater = issueUpdater;
        super.setConditions(new IsUnResolved(), new Condition() {
          @Override
          public boolean matches(Issue issue) {
            return isCurrentUserIssueAdmin(((DefaultIssue) issue).projectKey());
          }
        });
    View Full Code Here

    Examples of org.sonatype.mavenbook.weather.model.Condition

      location.setRegion( doc.valueOf("/rss/channel/y:location/@region") );
      location.setCountry( doc.valueOf("/rss/channel/y:location/@country") );
      location.setZip( zip );
      weather.setLocation( location );

      Condition condition = new Condition();
      condition.setText( doc.valueOf("/rss/channel/item/y:condition/@text") );
      condition.setTemp( doc.valueOf("/rss/channel/item/y:condition/@temp") );
      condition.setCode( doc.valueOf("/rss/channel/item/y:condition/@code") );
      condition.setDate( doc.valueOf("/rss/channel/item/y:condition/@date") );
      condition.setWeather( weather );
      weather.setCondition( condition );

      Atmosphere atmosphere = new Atmosphere();
      atmosphere.setHumidity( doc.valueOf("/rss/channel/y:atmosphere/@humidity") );
      atmosphere.setVisibility( doc.valueOf("/rss/channel/y:atmosphere/@visibility") );
    View Full Code Here

    Examples of org.sonatype.nexus.capability.Condition

       * <p/>
       * Condition is not satisfied when both operands are not satisfied.
       */
      @Test
      public void and01() {
        final Condition and =
            prepare((CompositeConditionSupport) underTest.and(left, right), UNSATISFIED, UNSATISFIED);
        assertThat(and.isSatisfied(), is(false));
      }
    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.