public static class Precondition.BooleanPrecondition extends Precondition
Characteristic will always be an
AncestorCharacteristicPrecondition.BooleanPrecondition, Precondition.NumericComparisonPrecondition, Precondition.StringHashPrecondition| Constructor and Description |
|---|
BooleanPrecondition(Characteristic<java.lang.Boolean> characteristic)
Create a precondition that maps directly to a boolean characteristic
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
testPrecondition(PreconditionMatcher matcher)
Evaluate the precondition, which will be true if and only if the value of
the characteristic for the current item is the boolean value true.
|
java.lang.String |
toString() |
isSatisfied, setSlotNumberpublic BooleanPrecondition(Characteristic<java.lang.Boolean> characteristic)
characteristic - the boolean characteristicpublic boolean testPrecondition(PreconditionMatcher matcher) throws XPathException
testPrecondition in class Preconditionmatcher - the PreconditionMatcher: holds the dynamic context for evaluation.XPathException - if evaluation of the precondition fails with a dynamic errorpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.