java.lang.Object
com.sun.xml.ws.policy.PolicyAssertion
com.sun.xml.ws.policy.ComplexAssertion
Complex assertion is an abstract class that serves as a base class for any assertion
that MAY contain nested policies.
- Author:
- Marek Potociar
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
ComplexAssertion
(AssertionData data, Collection<? extends PolicyAssertion> assertionParameters, AssertionSet nestedAlternative) -
Method Summary
Modifier and TypeMethodDescriptionfinal NestedPolicy
Returns the nested policy if any.final boolean
Returns the boolean information whether this assertion contains nested policy.Methods inherited from class com.sun.xml.ws.policy.PolicyAssertion
equals, getAttributes, getAttributesSet, getAttributeValue, getImplementation, getName, getParametersIterator, getValue, hashCode, hasParameters, isIgnorable, isOptional, isPrivate, toString, toString
-
Constructor Details
-
ComplexAssertion
protected ComplexAssertion() -
ComplexAssertion
protected ComplexAssertion(AssertionData data, Collection<? extends PolicyAssertion> assertionParameters, AssertionSet nestedAlternative)
-
-
Method Details
-
hasNestedPolicy
public final boolean hasNestedPolicy()Description copied from class:PolicyAssertion
Returns the boolean information whether this assertion contains nested policy.- Overrides:
hasNestedPolicy
in classPolicyAssertion
- Returns:
true
if the assertion contains child (nested) policy. Returnsfalse
otherwise.
-
getNestedPolicy
Description copied from class:PolicyAssertion
Returns the nested policy if any.- Overrides:
getNestedPolicy
in classPolicyAssertion
- Returns:
- the nested policy if the assertion contains a nested policy. Returns
null
otherwise.
-