org.drools.analytics.components
Class LiteralRestriction

java.lang.Object
  extended by org.drools.analytics.components.AnalyticsComponent
      extended by org.drools.analytics.components.Restriction
          extended by org.drools.analytics.components.LiteralRestriction
All Implemented Interfaces:
Cause

public class LiteralRestriction
extends Restriction
implements Cause

Author:
Toni Rikkola

Nested Class Summary
 
Nested classes/interfaces inherited from class org.drools.analytics.components.Restriction
Restriction.RestrictionType
 
Nested classes/interfaces inherited from interface org.drools.analytics.result.Cause
Cause.CauseType
 
Field Summary
 
Fields inherited from class org.drools.analytics.components.AnalyticsComponent
id, ruleName
 
Constructor Summary
LiteralRestriction()
           
 
Method Summary
 java.util.Date getDateValue()
           
 double getDoubleValue()
           
 int getIntValue()
           
 Restriction.RestrictionType getRestrictionType()
           
 java.lang.Object getValueAsObject()
           
 java.lang.String getValueAsString()
           
 Field.FieldType getValueType()
           
 boolean isBooleanValue()
           
 void setBooleanValue(boolean booleanValue)
           
 void setValue(java.lang.String value)
           
 java.lang.String toString()
           
 
Methods inherited from class org.drools.analytics.components.Restriction
getCauseType, getComponentType, getConstraintId, getEvaluator, getFieldId, getPatternId, getRuleId, isPatternIsNot, setConstraintId, setEvaluator, setFieldId, setPatternId, setPatternIsNot, setRuleId
 
Methods inherited from class org.drools.analytics.components.AnalyticsComponent
getId, getRuleName, setRuleName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.drools.analytics.result.Cause
getCauseType, getId, getRuleName
 

Constructor Detail

LiteralRestriction

public LiteralRestriction()
Method Detail

getRestrictionType

public Restriction.RestrictionType getRestrictionType()
Specified by:
getRestrictionType in class Restriction

getValueAsObject

public java.lang.Object getValueAsObject()

getValueAsString

public java.lang.String getValueAsString()

getDoubleValue

public double getDoubleValue()

getIntValue

public int getIntValue()

getValueType

public Field.FieldType getValueType()

getDateValue

public java.util.Date getDateValue()

setValue

public void setValue(java.lang.String value)

isBooleanValue

public boolean isBooleanValue()

setBooleanValue

public void setBooleanValue(boolean booleanValue)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object