org.drools.lang.descr
Class FieldConstraintDescr
java.lang.Object
org.drools.lang.descr.BaseDescr
org.drools.lang.descr.FieldConstraintDescr
- All Implemented Interfaces:
- Externalizable, Serializable
public class FieldConstraintDescr
- extends BaseDescr
This represents a literal node in the rule language. This is
a constraint on a single field of a pattern.
The "text" contains the content, which may also be an enumeration.
- 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 |
FieldConstraintDescr
public FieldConstraintDescr(String fieldName)
getFieldName
public String getFieldName()
addRestriction
public void addRestriction(RestrictionDescr restriction)
getRestrictions
public List getRestrictions()
getRestriction
public RestrictionConnectiveDescr getRestriction()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.