org.drools.lang.descr
Class FieldConstraintDescr

java.lang.Object
  extended by org.drools.lang.descr.BaseDescr
      extended by 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

Constructor Summary
FieldConstraintDescr(String fieldName)
           
 
Method Summary
 void addRestriction(RestrictionDescr restriction)
           
 String getFieldName()
           
 RestrictionConnectiveDescr getRestriction()
           
 List 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
 

Constructor Detail

FieldConstraintDescr

public FieldConstraintDescr(String fieldName)
Method Detail

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.