Lines Matching defs:alternative
43 * The AssertionSet is a set of assertions. It represents a single policy alternative.
103 for (AssertionSet alternative : alternatives) {
104 addAll(alternative.assertions);
154 * Checks whether this policy alternative is compatible with the provided policy alternative.
156 * @param alternative policy alternative used for compatibility test
160 boolean isCompatibleWith(final AssertionSet alternative, PolicyIntersector.CompatibilityMode mode) {
161 boolean result = (mode == PolicyIntersector.CompatibilityMode.LAX) || this.vocabulary.equals(alternative.vocabulary);
163 result = result && this.areAssertionsCompatible(alternative, mode);
164 result = result && alternative.areAssertionsCompatible(this, mode);
169 private boolean areAssertionsCompatible(final AssertionSet alternative, PolicyIntersector.CompatibilityMode mode) {
172 for (PolicyAssertion thatAssertion : alternative.assertions) {
279 * @param that other alternative to compare with