public abstract class Characteristic<T>
extends java.lang.Object
@class
attribute is a characteristic that may be used by several
preconditions that test for the presence of particular tokens in the value.Constructor and Description |
---|
Characteristic() |
Modifier and Type | Method and Description |
---|---|
abstract T |
evaluate(XPathContext context)
Evaluate the value of this characteristic for the context item
|
int |
getSlotNumber()
Get the slot number allocated to the value of this characteristic in the
RuleSearchState |
void |
setSlotNumber(int slotNumber)
Allocate a slot number to this characteristic in the
RuleSearchState |
public final int getSlotNumber()
RuleSearchState
public final void setSlotNumber(int slotNumber)
RuleSearchState
slotNumber
- the slot number to be allocatedpublic abstract T evaluate(XPathContext context) throws XPathException
context
- the dynamic evaluation context; the context item is the item being matchedXPathException
- if evaluation of the characteristic failsCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.