org.drools.compiler.lang.descr
Class FieldConstraintDescr
java.lang.Object
org.drools.compiler.lang.descr.BaseDescr
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
| 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 |
FieldConstraintDescr
public FieldConstraintDescr()
FieldConstraintDescr
public FieldConstraintDescr(String fieldName)
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
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.