Comparable<AssertionSet>, Iterable<PolicyAssertion>public final class AssertionSet extends Object implements Iterable<PolicyAssertion>, Comparable<AssertionSet>
| Modifier and Type | Method | Description |
|---|---|---|
int |
compareTo(AssertionSet that) |
An
Comparable<T>.compareTo(T o) interface method implementation. |
boolean |
contains(QName assertionName) |
Returns true if the assertion set contains the assertion name specified in its vocabulary
|
static AssertionSet |
createAssertionSet(Collection<? extends PolicyAssertion> assertions) |
Creates and returns new assertion set holding a set of provided policy assertions.
|
static AssertionSet |
createMergedAssertionSet(Collection<AssertionSet> alternatives) |
Creates and returns new assertion set holding content of all provided policy assertion sets.
|
static AssertionSet |
emptyAssertionSet() |
|
boolean |
equals(Object obj) |
An
Object.equals(Object obj) method override. |
Collection<PolicyAssertion> |
get(QName name) |
Searches for assertions with given name.
|
int |
hashCode() |
An
Object.hashCode() method override. |
boolean |
isEmpty() |
Returns
true if this assertion set contains no assertions. |
Iterator<PolicyAssertion> |
iterator() |
Returns an iterator over a set of child policy assertion objects.
|
String |
toString() |
An
Object.toString() method override. |
forEach, spliteratorpublic static AssertionSet createMergedAssertionSet(Collection<AssertionSet> alternatives)
alternatives - collection of provided policy assertion sets which content is to be stored in the assertion set.
May be null - empty assertion set is returned in such case.public static AssertionSet createAssertionSet(Collection<? extends PolicyAssertion> assertions)
assertions - collection of provided policy assertions to be stored in the assertion set. May be null.public static AssertionSet emptyAssertionSet()
public Iterator<PolicyAssertion> iterator()
iterator in interface Iterable<PolicyAssertion>public Collection<PolicyAssertion> get(QName name)
name - The fully qualified name of searched assertionnull value is never returned).public boolean isEmpty()
true if this assertion set contains no assertions.true if this assertion set contains no assertions.public boolean contains(QName assertionName)
assertionName - the fully qualified name of the assertiontrue, if an assertion with the given name could be found in the assertion set vocabulary false otherwise.public int compareTo(AssertionSet that)
Comparable<T>.compareTo(T o) interface method implementation.compareTo in interface Comparable<AssertionSet>that - other alternative to compare withpublic boolean equals(Object obj)
Object.equals(Object obj) method override.public int hashCode()
Object.hashCode() method override.Copyright © 2006–2018 Oracle Corporation. All rights reserved.