Drools :: Compiler 6.2.0.Final

org.drools.compiler.lang.descr
Class FieldConstraintDescr

java.lang.Object
  extended by org.drools.compiler.lang.descr.BaseDescr
      extended by org.drools.compiler.lang.descr.FieldConstraintDescr
All Implemented Interfaces:
Externalizable, Serializable, org.drools.core.rule.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

Constructor Summary
FieldConstraintDescr()
           
FieldConstraintDescr(String fieldName)
           
 
Method Summary
 void addRestriction(RestrictionDescr restriction)
           
 String getFieldName()
           
 RestrictionConnectiveDescr getRestriction()
           
 List getRestrictions()
           
 void readExternal(ObjectInput in)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.drools.compiler.lang.descr.BaseDescr
copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, positionAsString, setEndCharacter, setEndLocation, setLocation, setNamespace, setResource, setStartCharacter, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldConstraintDescr

public FieldConstraintDescr()

FieldConstraintDescr

public FieldConstraintDescr(String fieldName)
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class BaseDescr
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class BaseDescr
Throws:
IOException

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

Drools :: Compiler 6.2.0.Final

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.