org.apache.ws.policy
Class AndCompositeAssertion
java.lang.Object
org.apache.ws.policy.AbstractAssertion
org.apache.ws.policy.AndCompositeAssertion
- All Implemented Interfaces:
- Assertion, CompositeAssertion
- public class AndCompositeAssertion
- extends AbstractAssertion
- implements CompositeAssertion
AndCompositeAssertion requires that all of its terms are met.
Sanka Samaranayake (sanka@apache.org)
Methods inherited from class org.apache.ws.policy.AbstractAssertion |
addTerms, getLineNo, getParent, getSource, getTerms, hasParent, intersect, isEmpty, isNormalized, merge, normalize, remove, setLineNo, setNormalized, setParent, setSource, size |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.ws.policy.Assertion |
addTerms, getLineNo, getParent, getSource, getTerms, hasParent, intersect, isEmpty, isNormalized, merge, normalize, remove, setLineNo, setNormalized, setParent, setSource, size |
AndCompositeAssertion
public AndCompositeAssertion()
addTerm
public void addTerm(Assertion assertion)
- Adds an Assertion to its terms list
- Specified by:
addTerm
in interface Assertion
- Overrides:
addTerm
in class AbstractAssertion
- Parameters:
assertion
- Assertion to be added
intersect
public Assertion intersect(Assertion assertion,
PolicyRegistry reg)
- Returns the intersection of self and argument against a specified Policy
Registry.
- Specified by:
intersect
in interface Assertion
- Parameters:
assertion
- the assertion to intersect with selfreg
- a sepcified policy registry
- Returns:
- assertion the assertion which is equivalent to intersection
between self and the argument
merge
public Assertion merge(Assertion assertion,
PolicyRegistry reg)
- Returns an assertion which is equivalent to merge of self and the
argument.
- Specified by:
merge
in interface Assertion
- Parameters:
assertion
- the assertion to be merged withreg
- the policy registry which the is used resolve external policy
references
- Returns:
- assertion the resultant assertion which is equivalent to merge of
self and argument
normalize
public Assertion normalize(PolicyRegistry reg)
- Returns an Assertion which is normalized using a specified policy
registry.
- Specified by:
normalize
in interface Assertion
- Parameters:
reg
- the policy registry used to resolve policy references
- Returns:
- an Assertion which is the normalized form of self
getType
public final short getType()
- Description copied from interface:
Assertion
- Returns a short type which describes the type of the assertion.
- Specified by:
getType
in interface Assertion
- Returns:
- a short value of one of following values:
PRIMITIVE_TYPE : if the assertion is a PrimitiveAssertion
COMPOSITE_AND_TYPE : if the assertion is a AndCompositeAssertion
COMPOSITE_XOR_TYPE : if the assertion is a XorCompositeAssertion
COMPOSITE_POLICY_TYPE : if the assertion is a Policy
POLICY_REFERENCE_TYPE : if the assertion is a PolicyReferece
Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.