org.drools.lang.descr
Class RestrictionConnectiveDescr

java.lang.Object
  extended by org.drools.lang.descr.BaseDescr
      extended by org.drools.lang.descr.RestrictionDescr
          extended by org.drools.lang.descr.RestrictionConnectiveDescr
All Implemented Interfaces:
java.io.Serializable

public class RestrictionConnectiveDescr
extends RestrictionDescr

This is used to connect restrictions together for a single field eg: age < 40 & > 30

See Also:
Serialized Form

Field Summary
static int AND
           
static int OR
           
 
Constructor Summary
RestrictionConnectiveDescr(int connective)
           
 
Method Summary
 void addOrMerge(RestrictionDescr restriction)
           
 void addRestriction(RestrictionDescr restriction)
           
 int getConnective()
           
 java.util.List getRestrictions()
           
 java.lang.String toString()
           
 
Methods inherited from class org.drools.lang.descr.BaseDescr
getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getStartCharacter, getText, setEndCharacter, setEndLocation, setLocation, setStartCharacter, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AND

public static final int AND
See Also:
Constant Field Values

OR

public static final int OR
See Also:
Constant Field Values
Constructor Detail

RestrictionConnectiveDescr

public RestrictionConnectiveDescr(int connective)
Method Detail

getConnective

public int getConnective()

addRestriction

public void addRestriction(RestrictionDescr restriction)

addOrMerge

public void addOrMerge(RestrictionDescr restriction)

getRestrictions

public java.util.List getRestrictions()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object