public enum CompKind extends Enum<CompKind>
Enumeration for all comparison kinds.
Enum Constant and Description |
---|
EQ
comparison type 'equal'.
|
FO
node comparison type.
|
GE
value comparison type 'greater or equal than'.
|
GT
comparison type 'greater than'.
|
IS
node comparison type .
|
LE
comparison type 'less or equal than'.
|
LT
comparison type 'less than'.
|
NE
comparison type 'not equal'.
|
PRE
node comparison type .
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
compare(String mOperand1,
String mOperand2,
Type mType)
Compares the two input values.
|
static CompKind |
fromString(String paramName)
Public method to easy retrieve the Function-Class for a name.
|
static CompKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompKind EQ
public static final CompKind NE
public static final CompKind LT
public static final CompKind LE
public static final CompKind GT
public static final CompKind GE
public static final CompKind FO
public static final CompKind PRE
public static final CompKind IS
public static CompKind[] values()
for (CompKind c : CompKind.values()) System.out.println(c);
public static CompKind 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 abstract boolean compare(String mOperand1, String mOperand2, Type mType) throws TTXPathException
mOperand1
- string value of first comparison operandmOperand2
- string value of second comparison operandmType
- comparison typeTTXPathException
- if anything weird happens while comparison.Copyright © 2013. All Rights Reserved.