public enum PMMLOperator extends Enum<PMMLOperator>
Enum Constant and Description |
---|
EQUAL
= operator.
|
GREATER_OR_EQUAL
>= operator.
|
GREATER_THAN
> operator.
|
IS_MISSING
is missing operator.
|
IS_NOT_MISSING
is not missing operator.
|
LESS_OR_EQUAL
<= operator.
|
LESS_THAN
< operator.
|
NOT_EQUAL
!= operator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(Double a,
Double b)
Evaluates the operator on the passed double values.
|
boolean |
evaluate(String a,
String b)
Evaluates the operator on the passed strings.
|
static PMMLOperator |
get(String represent)
Returns the corresponding operator for the passed representation.
|
String |
getSymbol()
Returns the symbol for the operator.
|
String |
toString() |
static PMMLOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PMMLOperator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PMMLOperator EQUAL
public static final PMMLOperator NOT_EQUAL
public static final PMMLOperator LESS_THAN
public static final PMMLOperator LESS_OR_EQUAL
public static final PMMLOperator GREATER_THAN
public static final PMMLOperator GREATER_OR_EQUAL
public static final PMMLOperator IS_MISSING
public static final PMMLOperator IS_NOT_MISSING
public static PMMLOperator[] values()
for (PMMLOperator c : PMMLOperator.values()) System.out.println(c);
public static PMMLOperator valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<PMMLOperator>
public static PMMLOperator get(String represent) throws InstantiationException
represent
- the representation to find the operator forInstantiationException
- - if no such PMML operator existspublic String getSymbol()
public boolean evaluate(String a, String b)
a
- the first stringb
- the second string (only applicable for binary operations,
otherwise ignored)
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.