org.drools.eclipse.core
Class Rule

java.lang.Object
  extended by org.drools.eclipse.core.DroolsElement
      extended by org.drools.eclipse.core.Rule

public class Rule
extends DroolsElement

This represents a rule.


Field Summary
 
Fields inherited from class org.drools.eclipse.core.DroolsElement
ACTIVATION_GROUP, AGENDA_GROUP, DEFAULT_RULE_GROUP, EXPANDER, FUNCTION, GLOBAL, IMPORT, NO_ELEMENTS, PACKAGE, PROCESS, QUERY, RULE, RULE_ATTRIBUTE, RULEFLOW_GROUP, RULESET, TEMPLATE
 
Method Summary
 RuleAttribute getAttribute(String attributeName)
           
 DroolsElement[] getChildren()
           
 RuleGroup getGroup()
           
 Package getParentPackage()
           
 String getRuleName()
           
 int getType()
           
 void setGroup(RuleGroup group)
           
 String toString()
           
 
Methods inherited from class org.drools.eclipse.core.DroolsElement
getFile, getLength, getOffset, getParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getParentPackage

public Package getParentPackage()

getRuleName

public String getRuleName()

getGroup

public RuleGroup getGroup()

setGroup

public void setGroup(RuleGroup group)

getAttribute

public RuleAttribute getAttribute(String attributeName)

getType

public int getType()
Specified by:
getType in class DroolsElement

getChildren

public DroolsElement[] getChildren()
Specified by:
getChildren in class DroolsElement

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.