Package org.drools.drl.ast.descr
Class FieldConstraintDescr
- java.lang.Object
-
- org.drools.drl.ast.descr.BaseDescr
-
- org.drools.drl.ast.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
-
-
Constructor Summary
Constructors Constructor Description FieldConstraintDescr()FieldConstraintDescr(String fieldName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRestriction(RestrictionDescr restriction)StringgetFieldName()RestrictionConnectiveDescrgetRestriction()ListgetRestrictions()voidreadExternal(ObjectInput in)voidsetResource(org.kie.api.io.Resource resource)StringtoString()voidwriteExternal(ObjectOutput out)-
Methods inherited from class org.drools.drl.ast.descr.BaseDescr
accept, copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, isNegated, negate, positionAsString, replaceVariable, setEndCharacter, setEndLocation, setLocation, setNamespace, setStartCharacter, setText
-
-
-
-
Constructor Detail
-
FieldConstraintDescr
public FieldConstraintDescr()
-
FieldConstraintDescr
public FieldConstraintDescr(String fieldName)
-
-
Method Detail
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classBaseDescr- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classBaseDescr- Throws:
IOException
-
getFieldName
public String getFieldName()
-
addRestriction
public void addRestriction(RestrictionDescr restriction)
-
getRestrictions
public List getRestrictions()
-
getRestriction
public RestrictionConnectiveDescr getRestriction()
-
setResource
public void setResource(org.kie.api.io.Resource resource)
- Overrides:
setResourcein classBaseDescr
-
-