org.drools.lang.descr
Class StringConnectiveDescr

java.lang.Object
  extended by org.drools.lang.descr.BaseDescr
      extended by org.drools.lang.descr.RestrictionDescr
          extended by org.drools.lang.descr.StringConnectiveDescr
All Implemented Interfaces:
Externalizable, Serializable

public class StringConnectiveDescr
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 StringConnectiveDescr.RestrictionConnectiveType
          The connective types that can be used for a restriction
 
Field Summary
static StringConnectiveDescr.RestrictionConnectiveType AND
           
static StringConnectiveDescr.RestrictionConnectiveType OR
           
 
Constructor Summary
StringConnectiveDescr(StringConnectiveDescr.RestrictionConnectiveType connective)
           
 
Method Summary
 void add(Object object)
           
 StringConnectiveDescr.RestrictionConnectiveType getConnective()
           
 List<Object> 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 StringConnectiveDescr.RestrictionConnectiveType AND

OR

public static final StringConnectiveDescr.RestrictionConnectiveType OR
Constructor Detail

StringConnectiveDescr

public StringConnectiveDescr(StringConnectiveDescr.RestrictionConnectiveType connective)
Method Detail

getConnective

public StringConnectiveDescr.RestrictionConnectiveType getConnective()

add

public void add(Object object)

getRestrictions

public List<Object> getRestrictions()

toString

public String toString()
Overrides:
toString in class Object


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