Skip navigation links
oracle.wsm.policy.model.impl
Class XorCompositeAssertion
java.lang.Object
oracle.wsm.policy.model.impl.SimpleAssertion
oracle.wsm.policy.model.impl.CompositeAssertion
oracle.wsm.policy.model.impl.XorCompositeAssertion
- All Implemented Interfaces:
- Serializable, IAssertionAdvertiser, IAssertion, ICompositeAssertion, ISimpleAssertion, ISimpleOracleAssertion, IXorCompositeAssertion
-
public class XorCompositeAssertion
- extends CompositeAssertion
- implements IXorCompositeAssertion
XORCompositeAssertion represents a bunch of policy alternatives. It requires that exactly one of its terms (policy alternative) is statisfied.
- 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 |
XorCompositeAssertion
public XorCompositeAssertion()
XorCompositeAssertion
public XorCompositeAssertion(QName qname)
addAssertion
public void addAssertion(IAssertion assertion)
- Description copied from class:
CompositeAssertion
- Adds an assertion as one of its terms
-
- Specified by:
addAssertion
in interface ICompositeAssertion
- Overrides:
addAssertion
in class CompositeAssertion
-
- Parameters:
assertion
- the assertion that should be added as its term
normalize
public IAssertion normalize(IPolicyRegistry reg)
-
- Specified by:
normalize
in interface IAssertion
- Overrides:
normalize
in class SimpleAssertion
-
- Returns:
intersect
public IAssertion intersect(IAssertion assertion,
IPolicyRegistry reg,
IIntersectionContext context)
- Description copied from interface:
IAssertion
- Returns an assertion which is equivalent of intersect of self and argument. Here the external policy are resolved via a policy registry that is supplied as an argument.
-
- Specified by:
intersect
in interface IAssertion
- Overrides:
intersect
in class SimpleAssertion
-
- Parameters:
assertion
- the assertion to intersect with
context
- - The intersection context is passed to capture the running context of the intersection and to accumulate intersection failures
- Returns:
- the equivalent of intersection of self and argument
merge
public IAssertion merge(IAssertion assertion,
IPolicyRegistry reg)
- Description copied from interface:
IAssertion
- Returns the equivalent of merge of self and argument. The rules to construct argument are specified in WS Policy specification 1.0 Here the external policy references are resolved via a policy registry that is supplied as an argument
-
- Specified by:
merge
in interface IAssertion
- Overrides:
merge
in class SimpleAssertion
-
- Parameters:
assertion
- the assertion to merge with
reg
- the policy registry that should be used to resolve external policy references
- Returns:
- the equivalent of merge of self and argument
equals
public boolean equals(Object obj)
- Description copied from class:
CompositeAssertion
- 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.