createAssertionSet(Collection<? extends PolicyAssertion> assertions) Creates and returns new assertion set holding a set of provided policy assertions.
Parameters: assertions - collection of provided policy assertions to be stored in the assertion set.
createMergedAssertionSet(Collection<AssertionSet> alternatives) Creates and returns new assertion set holding content of all provided policy assertion sets.
This method should not be used to perform a merge of general Policy instances.
toString(int indentLevel, StringBuffer buffer) A helper method that appends indented string representation of this instance to the input string buffer.
An
Comparable.compareTo(T o) interface method implementation.
Parameters: that - other alternative to compare with
contains
public boolean contains(QName assertionName)(Code)
Returns true if the assertion set contains the assertion name specified in its vocabulary
Parameters: assertionName - the fully qualified name of the assertion true , if an assertion with the given name could be found in the assertion set vocabulary false otherwise.
Creates and returns new assertion set holding a set of provided policy assertions.
Parameters: assertions - collection of provided policy assertions to be stored in the assertion set. May be null . new instance of assertion set holding the provided policy assertions
Creates and returns new assertion set holding content of all provided policy assertion sets.
This method should not be used to perform a merge of general Policy instances. A client should be aware of the
method's result meaning and the difference between merge of Policy instances and merge of AssertionSet instances.
Parameters: 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. new instance of assertion set holding the content of all provided policy assertion sets.
Searches for assertions with given name. Only assertions that are contained as immediate children of the assertion set are
searched, i.e. nested policies are not searched.
Parameters: name - The fully qualified name of searched assertion List of all assertions matching the requested name. If no assertions are found, the returned list is empty(i.e. null value is never returned).
Retrieves the vocabulary of this policy expression. The vocabulary is represented by an immutable collection of
unique QName objects. Each of those objects represents single assertion type contained in the assertion set.
immutable collection of assertion types contained in the assertion set (a policy vocabulary).
Checks whether this policy alternative is compatible with the provided policy alternative.
Parameters: alternative - policy alternative used for compatibility test Parameters: mode - compatibility mode to be used true if the two policy alternatives are compatible, false otherwise
A helper method that appends indented string representation of this instance to the input string buffer.
Parameters: indentLevel - indentation level to be used. Parameters: buffer - buffer to be used for appending string representation of this instance modified buffer containing new string representation of the instance