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:
Externalizable, 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

Nested Class Summary
static class RestrictionConnectiveDescr.RestrictionConnectiveType
          The connective types that can be used for a restriction
 
Field Summary
static RestrictionConnectiveDescr.RestrictionConnectiveType AND
           
static RestrictionConnectiveDescr.RestrictionConnectiveType OR
           
 
Constructor Summary
RestrictionConnectiveDescr(RestrictionConnectiveDescr.RestrictionConnectiveType connective)
           
 
Method Summary
 void addOrMerge(RestrictionDescr restriction)
           
 void addRestriction(RestrictionDescr restriction)
           
 RestrictionConnectiveDescr.RestrictionConnectiveType getConnective()
           
 List<RestrictionDescr> getRestrictions()
           
 String toString()
           
 
Methods inherited from class org.drools.lang.descr.BaseDescr
getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getStartCharacter, getText, readExternal, setEndCharacter, setEndLocation, setLocation, setStartCharacter, setText, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AND

public static final RestrictionConnectiveDescr.RestrictionConnectiveType AND

OR

public static final RestrictionConnectiveDescr.RestrictionConnectiveType OR
Constructor Detail

RestrictionConnectiveDescr

public RestrictionConnectiveDescr(RestrictionConnectiveDescr.RestrictionConnectiveType connective)
Method Detail

getConnective

public RestrictionConnectiveDescr.RestrictionConnectiveType getConnective()

addRestriction

public void addRestriction(RestrictionDescr restriction)

addOrMerge

public void addOrMerge(RestrictionDescr restriction)

getRestrictions

public List<RestrictionDescr> getRestrictions()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.