org.drools.core.rule
Class Query
java.lang.Object
org.drools.core.rule.Rule
org.drools.core.rule.Query
- All Implemented Interfaces:
- Externalizable, Serializable, Dialectable, Wireable, org.kie.api.definition.KieDefinition, org.kie.api.definition.rule.Query, org.kie.api.definition.rule.Rule
public class Query
- extends Rule
- implements org.kie.api.definition.rule.Query
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface org.kie.api.definition.KieDefinition |
org.kie.api.definition.KieDefinition.KnowledgeType |
| Methods inherited from class org.drools.core.rule.Rule |
addMetaAttribute, addNamedConsequence, addPattern, equals, getActivationGroup, getActivationListener, getAgendaGroup, getAutoFocus, getCalendars, getConsequence, getConsequenceMetaData, getDateEffective, getDateExpires, getDeclaration, getDeclarations, getDialect, getEnabled, getId, getLhs, getLoadOrder, getMetaAttribute, getMetaAttributes, getMetaData, getMethodBytecode, getName, getNamedConsequence, getNamedConsequences, getNamespace, getPackage, getPackageName, getParent, getRequiredDeclarationsForConsequence, getResource, getRuleFlowGroup, getSalience, getSpecifity, getTimer, getTransformedLhs, hashCode, hasLogicalDependency, hasNamedConsequences, isEager, isEffective, isEnabled, isLockOnActive, isNoLoop, isSemanticallyValid, listMetaAttributes, setActivationGroup, setActivationListener, setAgendaGroup, setAutoFocus, setCalendars, setConsequence, setDateEffective, setDateExpires, setDialect, setEager, setEnabled, setHasLogicalDependency, setLhs, setLoadOrder, setLockOnActive, setNoLoop, setPackage, setParent, setRequiredDeclarationsForConsequence, setResource, setRuleFlowGroup, setSalience, setSemanticallyValid, setTimer, toString, wire |
| Methods inherited from interface org.kie.api.definition.rule.Query |
getMetaData, getName, getPackageName |
| Methods inherited from interface org.kie.api.definition.KieDefinition |
getId, getNamespace |
Query
public Query()
Query
public Query(String name)
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal in interface Externalizable- Overrides:
writeExternal in class Rule
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal in interface Externalizable- Overrides:
readExternal in class Rule
- Throws:
IOException
ClassNotFoundException
isValid
public boolean isValid()
- Override this as Queries will NEVER have a consequence, and it should
not be taken into account when deciding if it is valid.
- Overrides:
isValid in class Rule
- Returns:
true if this rule is valid, else
false.
setParameters
public void setParameters(Declaration[] parameters)
getParameters
public Declaration[] getParameters()
getKnowledgeType
public org.kie.api.definition.KieDefinition.KnowledgeType getKnowledgeType()
- Specified by:
getKnowledgeType in interface org.kie.api.definition.KieDefinition- Overrides:
getKnowledgeType in class Rule
isQuery
public boolean isQuery()
- Overrides:
isQuery in class Rule
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.