Skip navigation links
oracle.wsm.policy.model.impl
Class AndCompositeAssertion
java.lang.Object
oracle.wsm.policy.model.impl.SimpleAssertion
oracle.wsm.policy.model.impl.CompositeAssertion
oracle.wsm.policy.model.impl.AndCompositeAssertion
- All Implemented Interfaces:
- Serializable, IAssertionAdvertiser, IAndCompositeAssertion, IAssertion, ICompositeAssertion, ISimpleAssertion, ISimpleOracleAssertion
- Direct Known Subclasses:
- Policy
-
public class AndCompositeAssertion
- extends CompositeAssertion
- implements IAndCompositeAssertion
AndCompositeAssertion represents either policy or a single policy alternative. It requires that all its assertions are satisfied. Maps to wsp:All element in WS-Policy.
- See Also:
- Serialized Form
Methods inherited from class oracle.wsm.policy.model.impl.CompositeAssertion |
addAssertion, addAssertions, advertiseOracleWSPolicy, advertiseWSPolicy, clearAssertions, getAssertion, getAssertions, getAssertionsArray, getAssertionsByQName, getDigest, intersect, isEmpty, isOptional, merge, normalize, removeAssertion, removeAssertion, removeAssertions, setAssertions, setNormalized, setOptional, size, validate |
Methods inherited from class oracle.wsm.policy.model.impl.SimpleAssertion |
addAttribute, cloneAttrs, getAssertionType, getAttachTo, getAttribute, getAttributes, getBindings, getCategory, getCopyOfAssertion, getDescription, getDescription, getDigest, getDigestForAttrs, getGuard, getName, getParent, getQName, getStringForMatching, getStrValue, getUniquePathToAssertion, getWSPolicy15QName, getWSPolicy2006QName, hasBindings, hasGuard, hasParent, isEnforced, isIncludedInDigestCalculation, isNormalized, isSilent, removeAttribute, removeAttrsForOracleWSPolicyAdvertisement, removeAttrsForWSPolicyAdvertisement, removeBindings, removeGuard, setAttachTo, setAttribute, setAttributes, setBindings, setCategory, setDefaultValues, setDescription, setEnforced, setGuard, setName, setParent, setSilent, setStrValue |
Methods inherited from interface oracle.wsm.policy.model.ICompositeAssertion |
addAssertion, addAssertions, clearAssertions, getAssertion, getAssertions, getAssertionsArray, getAssertionsByQName, isEmpty, removeAssertion, removeAssertions, setAssertions, size |
Methods inherited from interface oracle.wsm.policy.model.IAssertion |
addAttribute, getAssertionType, getAttribute, getAttributes, getDigest, getDigest, getParent, getQName, getStringForMatching, hasParent, intersect, isNormalized, isOptional, merge, normalize, removeAttribute, setAttributes, setNormalized, setOptional, setParent, validate |
AndCompositeAssertion
public AndCompositeAssertion()
AndCompositeAssertion
public AndCompositeAssertion(QName qname)
addAssertion
public void addAssertion(IAssertion assertion)
- Adds an IAssertion to its assertion list
-
- Specified by:
addAssertion
in interface ICompositeAssertion
- Overrides:
addAssertion
in class CompositeAssertion
-
- Parameters:
assertion
- IAssertion to be added
intersect
public IAssertion intersect(IAssertion assertion,
IPolicyRegistry reg,
IIntersectionContext context)
- Returns the intersection of self and argument against a specified Policy Registry.
-
- Specified by:
intersect
in interface IAssertion
- Overrides:
intersect
in class SimpleAssertion
-
- Parameters:
assertion
- the assertion to intersect with self
reg
- a sepcified policy registry
context
- - The intersection context is passed to capture the running context of the intersection and to accumulate intersection failures
- Returns:
- assertion the assertion which is equivalent to intersection between self and the argument
merge
public IAssertion merge(IAssertion assertion,
IPolicyRegistry reg)
- Returns an assertion which is equivalent to merge of self and the argument.
-
- Specified by:
merge
in interface IAssertion
- Overrides:
merge
in class SimpleAssertion
-
- Parameters:
assertion
- the assertion to be merged with
reg
- 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 IAssertion normalize(IPolicyRegistry reg)
- Returns an IAssertion which is normalized using a specified policy registry.
-
- Specified by:
normalize
in interface IAssertion
- Overrides:
normalize
in class SimpleAssertion
-
- Parameters:
reg
- the policy registry used to resolve policy references
- Returns:
- an IAssertion which is the normalized form of self
equals
public boolean equals(Object obj)
- Compares the Assertionlist of two policies .It ignores the order of the Assertions.
-
- Overrides:
equals
in class CompositeAssertion
isIdentical
public boolean isIdentical(Object obj)
- It is same as equals method except it emphasizes on the order, while equlas doesn't.
-
- Specified by:
isIdentical
in interface IAssertion
- Overrides:
isIdentical
in class CompositeAssertion
toString
public String toString()
- Returns the assertion list of a policy as a string
-
- Overrides:
toString
in class CompositeAssertion
hashCode
public int hashCode()
- Returns an integer value which is uniquely identifies an object of this class.
-
- Overrides:
hashCode
in class CompositeAssertion
createInstance
public IAssertion createInstance(QName qname)
- Description copied from interface:
IAssertion
- Creates the appropriate assertion instance NOTE: The base implementation must be overriden by the subclasses!
-
- Specified by:
createInstance
in interface IAssertion
- Overrides:
createInstance
in class SimpleAssertion
-
- Returns:
createInstance
public IAssertion createInstance(QName qname,
boolean setExtensions)
-
- Overrides:
createInstance
in class SimpleAssertion
Skip navigation links
Copyright © 2007, 2009, Oracle and/or its affiliates. All rights reserved.