public class Operator extends Object implements Externalizable, org.kie.api.runtime.rule.Operator
| Modifier and Type | Field and Description |
|---|---|
static Operator |
CONTAINS |
static Operator |
EQUAL |
static Operator |
EXCLUDES |
static Operator |
GREATER |
static Operator |
GREATER_OR_EQUAL |
static Operator |
LESS |
static Operator |
LESS_OR_EQUAL |
static Operator |
MATCHES |
static Operator |
MEMBEROF |
static Operator |
NOT_CONTAINS |
static Operator |
NOT_EQUAL |
static Operator |
NOT_EXCLUDES |
static Operator |
NOT_MATCHES |
static Operator |
NOT_MEMBEROF |
static Operator |
NOT_SOUNDSLIKE |
static Operator |
SOUNDSLIKE |
| Constructor and Description |
|---|
Operator() |
| Modifier and Type | Method and Description |
|---|---|
static Operator |
addOperatorToRegistry(String operatorId,
boolean isNegated)
Creates a new Operator instance for the given parameters,
adds it to the registry and return it
|
static Operator |
determineOperator(String operatorId,
boolean isNegated)
Returns the operator instance for the given parameters
|
boolean |
equals(Object obj) |
static Collection<Operator> |
getAllOperators() |
String |
getOperatorString() |
int |
hashCode() |
boolean |
isNegated() |
void |
readExternal(ObjectInput in) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public static final Operator EQUAL
public static final Operator NOT_EQUAL
public static final Operator LESS
public static final Operator LESS_OR_EQUAL
public static final Operator GREATER
public static final Operator GREATER_OR_EQUAL
public static final Operator CONTAINS
public static final Operator NOT_CONTAINS
public static final Operator EXCLUDES
public static final Operator NOT_EXCLUDES
public static final Operator MEMBEROF
public static final Operator NOT_MEMBEROF
public static final Operator MATCHES
public static final Operator NOT_MATCHES
public static final Operator SOUNDSLIKE
public static final Operator NOT_SOUNDSLIKE
public static Operator addOperatorToRegistry(String operatorId, boolean isNegated)
operatorId - the identification symbol of the operatorisNegated - true if it is negatedpublic static Collection<Operator> getAllOperators()
public static Operator determineOperator(String operatorId, boolean isNegated)
operatorId - the identification symbol of the operatorisNegated - true if it is negatedpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic String getOperatorString()
getOperatorString in interface org.kie.api.runtime.rule.Operatorpublic boolean isNegated()
isNegated in interface org.kie.api.runtime.rule.OperatorCopyright © 2001–2018 JBoss by Red Hat. All rights reserved.