org.drools.lang.descr
Class RestrictionConnectiveDescr
java.lang.Object
org.drools.lang.descr.BaseDescr
org.drools.lang.descr.RestrictionDescr
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
Methods inherited from class org.drools.lang.descr.BaseDescr |
getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getStartCharacter, getText, readExternal, setEndCharacter, setEndLocation, setLocation, setStartCharacter, setText, writeExternal |
AND
public static final RestrictionConnectiveDescr.RestrictionConnectiveType AND
OR
public static final RestrictionConnectiveDescr.RestrictionConnectiveType OR
RestrictionConnectiveDescr
public RestrictionConnectiveDescr(RestrictionConnectiveDescr.RestrictionConnectiveType connective)
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.