public class AncestorCharacteristic extends Characteristic<java.lang.Boolean>
| Constructor and Description |
|---|
AncestorCharacteristic(Pattern pattern,
boolean isParent)
Define an AncestorCharacteristic
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Test whether this characteristic is the same as another characteristic.
|
java.lang.Boolean |
evaluate(XPathContext context)
Evaluate the characteristic as applied to the context item
|
int |
hashCode() |
java.lang.String |
toString() |
getSlotNumber, setSlotNumberpublic AncestorCharacteristic(Pattern pattern, boolean isParent)
pattern - the pattern that an ancestor/parent must satisfy if the the characteristic
is to have the value trueisParent - true if the pattern must match the immediate parent; false if the pattern
must match some ancestorpublic java.lang.Boolean evaluate(XPathContext context) throws XPathException
evaluate in class Characteristic<java.lang.Boolean>context - the dynamic evaluation context; the context item is the item being matchedXPathException - if pattern matching fails with a dynamic errorpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to be comparedpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.