⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 instrumentedrule.java

📁 rule engine drools-2.0-beta-18
💻 JAVA
字号:
package org.drools.rule;public class InstrumentedRule extends Rule{    public Boolean isValid;    public InstrumentedRule(String name)    {        super( name );    }    public void isValid(boolean isValid)    {        if ( isValid )        {            this.isValid = Boolean.TRUE;        }        else        {            this.isValid = Boolean.FALSE;        }    }    public boolean isValid()    {        if ( this.isValid == null )        {            return super.isValid( );        }        return this.isValid.booleanValue( );    }    public void checkValidity() throws InvalidRuleException    {        if ( this.isValid == null )        {            super.checkValidity( );            return;        }        else if ( this.isValid.booleanValue( ) )        {            return;        }        else        {            throw new InvalidRuleException( this );        }    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -