org.drools.lang.descr
Class FieldConstraintDescr
java.lang.Object
org.drools.lang.descr.BaseDescr
org.drools.lang.descr.FieldConstraintDescr
- All Implemented Interfaces:
- Externalizable, Serializable, Namespaceable
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 |
copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, positionAsString, readExternal, setEndCharacter, setEndLocation, setLocation, setNamespace, setResource, 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-2014 JBoss by Red Hat. All Rights Reserved.