org.drools.base.evaluators
Class Operator
java.lang.Object
org.drools.base.evaluators.Operator
- All Implemented Interfaces:
- Externalizable, Serializable, org.drools.runtime.rule.Operator
public class Operator
- extends Object
- implements Externalizable, org.drools.runtime.rule.Operator
- See Also:
- Serialized Form
EQUAL
public static final Operator EQUAL
NOT_EQUAL
public static final Operator NOT_EQUAL
LESS
public static final Operator LESS
LESS_OR_EQUAL
public static final Operator LESS_OR_EQUAL
GREATER
public static final Operator GREATER
GREATER_OR_EQUAL
public static final Operator GREATER_OR_EQUAL
Operator
public Operator()
addOperatorToRegistry
public static Operator addOperatorToRegistry(String operatorId,
boolean isNegated)
- Creates a new Operator instance for the given parameters,
adds it to the registry and return it
- Parameters:
operatorId
- the identification symbol of the operatorisNegated
- true if it is negated
- Returns:
- the newly created operator
determineOperator
public static Operator determineOperator(String operatorId,
boolean isNegated)
- Returns the operator instance for the given parameters
- Parameters:
operatorId
- the identification symbol of the operatorisNegated
- true if it is negated
- Returns:
- the operator in case it exists
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Throws:
IOException
ClassNotFoundException
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
getOperatorString
public String getOperatorString()
- Specified by:
getOperatorString
in interface org.drools.runtime.rule.Operator
isNegated
public boolean isNegated()
- Specified by:
isNegated
in interface org.drools.runtime.rule.Operator
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.