Lines Matching defs:assertions

43  * The AssertionSet is a set of assertions. It represents a single policy alternative.
50 * The comparator comapres policy assertions according to their publicly accessible attributes, in the following
56 * 4. has nested assertions (boolean): false < true
92 private final List<PolicyAssertion> assertions;
98 this.assertions = list;
102 this.assertions = new LinkedList<PolicyAssertion>();
104 addAll(alternative.assertions);
113 if (this.assertions.contains(assertion)) {
116 this.assertions.add(assertion);
122 private boolean addAll(final Collection<? extends PolicyAssertion> assertions) {
125 if (assertions != null) {
126 for (PolicyAssertion assertion : assertions) {
135 * Return all assertions contained in this assertion set.
137 * @return All assertions contained in this assertion set
140 return assertions;
170 nextAssertion: for (PolicyAssertion thisAssertion : this.assertions) {
172 for (PolicyAssertion thatAssertion : alternative.assertions) {
200 Collections.sort(result.assertions, ASSERTION_COMPARATOR);
206 * Creates and returns new assertion set holding a set of provided policy assertions.
208 * @param assertions collection of provided policy assertions to be stored in the assertion set. May be {@code null}.
209 * @return new instance of assertion set holding the provided policy assertions
211 public static AssertionSet createAssertionSet(final Collection<? extends PolicyAssertion> assertions) {
212 if (assertions == null || assertions.isEmpty()) {
217 result.addAll(assertions);
218 Collections.sort(result.assertions, ASSERTION_COMPARATOR);
232 return this.assertions.iterator();
236 * Searches for assertions with given name. Only assertions that are contained as immediate children of the assertion set are
240 * @return List of all assertions matching the requested name. If no assertions are found, the returned list is empty
248 for (PolicyAssertion assertion : assertions) {
259 * Returns {@code true} if this assertion set contains no assertions.
261 * @return {@code true} if this assertion set contains no assertions.
264 return assertions.isEmpty();
306 // vocabularies are equal => comparing assertions
348 result = result && this.assertions.size() == that.assertions.size() && this.assertions.containsAll(that.assertions);
360 result = 37 * result + assertions.hashCode();
385 if (assertions.isEmpty()) {
386 buffer.append(innerIndent).append("no assertions").append(PolicyUtils.Text.NEW_LINE);
388 for (PolicyAssertion assertion : assertions) {