public static class Precondition.BooleanPrecondition extends Precondition
Characteristic
will always be an
AncestorCharacteristic
Precondition.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, setSlotNumber
public BooleanPrecondition(Characteristic<java.lang.Boolean> characteristic)
characteristic
- the boolean characteristicpublic boolean testPrecondition(PreconditionMatcher matcher) throws XPathException
testPrecondition
in class Precondition
matcher
- 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.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.