Package 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
-
-
Constructor Summary
Constructors Constructor Description FieldConstraintDescr()
FieldConstraintDescr(String fieldName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRestriction(RestrictionDescr restriction)
String
getFieldName()
RestrictionConnectiveDescr
getRestriction()
List
getRestrictions()
void
readExternal(ObjectInput in)
void
setResource(org.kie.api.io.Resource resource)
String
toString()
void
writeExternal(ObjectOutput out)
-
Methods inherited from class org.drools.compiler.lang.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:
readExternal
in interfaceExternalizable
- Overrides:
readExternal
in classBaseDescr
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Overrides:
writeExternal
in 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:
setResource
in classBaseDescr
-
-