Constructor and Description |
---|
AbsComparator(INodeReadTrx mRtx,
AbsAxis mOperand1,
AbsAxis mOperand2,
CompKind mComp)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract AtomicValue[] |
atomize(AbsAxis paramOperand)
Atomizes an operand according to the rules specified in the XPath
specification.
|
protected abstract boolean |
compare(AtomicValue[] paramOperandOne,
AtomicValue[] paramOperandTwo)
Performs the comparison of two atomic values.
|
static AbsComparator |
getComparator(INodeReadTrx paramRtx,
AbsAxis paramOperandOne,
AbsAxis paramOperandTwo,
CompKind paramKind,
String paramVal)
Factory method to implement the comparator.
|
CompKind |
getCompKind()
Getting CompKind for this Comparator.
|
protected abstract Type |
getType(int mKey1,
int mKey2)
Returns the common comparable type of the two operands, or an error, if
the two operands don't have a common type on which a comparison is
allowed according to the XPath 2.0 specification.
|
boolean |
hasNext() |
protected void |
hook(AtomicValue[] paramOperandOne,
AtomicValue[] paramOperandTwo)
Allowes the general comparisons to do some extra functionality.
|
void |
reset(long mNodeKey)
Resetting the nodekey of this axis to a given nodekey.
|
addAtomicToItemList, close, getItemList, getNode, getStartKey, isSelfIncluded, iterator, moveTo, next, remove, resetToLastKey, resetToStartKey
public AbsComparator(INodeReadTrx mRtx, AbsAxis mOperand1, AbsAxis mOperand2, CompKind mComp)
mRtx
- Exclusive (immutable) trx to iterate with.mOperand1
- First value of the comparisonmOperand2
- Second value of the comparisonmComp
- comparison kindpublic final void reset(long mNodeKey)
public final boolean hasNext()
protected void hook(AtomicValue[] paramOperandOne, AtomicValue[] paramOperandTwo)
paramOperandOne
- first operandparamOperandTwo
- second operandprotected abstract boolean compare(AtomicValue[] paramOperandOne, AtomicValue[] paramOperandTwo) throws TTXPathException
paramOperandOne
- first comparison operand.paramOperandTwo
- second comparison operand.TTXPathException
protected abstract AtomicValue[] atomize(AbsAxis paramOperand) throws TTXPathException
paramOperand
- the operand that will be atomized.TTXPathException
- if any goes wrong.protected abstract Type getType(int mKey1, int mKey2) throws TTXPathException
mKey1
- first comparison operand's type keymKey2
- second comparison operand's type keyTTXPathException
public final CompKind getCompKind()
public static final AbsComparator getComparator(INodeReadTrx paramRtx, AbsAxis paramOperandOne, AbsAxis paramOperandTwo, CompKind paramKind, String paramVal)
paramRtx
- rtx for accessing dataparamOperandOne
- operand one to be comparedparamOperandTwo
- operand two to be comparedparamKind
- kind of comparisonparamVal
- string value to estimateCopyright © 2013. All Rights Reserved.