Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager
11g (11.1.1)

E10689-01


oracle.wsm.policy.model.impl
Class XorCompositeAssertion

java.lang.Object
  extended by oracle.wsm.policy.model.impl.SimpleAssertion
      extended by oracle.wsm.policy.model.impl.CompositeAssertion
          extended by 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

Nested Class Summary

 

Nested classes/interfaces inherited from interface oracle.wsm.policy.model.IAssertion
IAssertion.AssertionTypes

 

Field Summary

 

Fields inherited from interface oracle.wsm.policy.model.ISimpleAssertion
attachToAttrQName, categoryAttrQName, descAttrQName, enforcedAttrQName, NameAttrQName, optionalAttrQName, silentAttrQName, StageAttrQName, statusAttrQName

 

Constructor Summary
XorCompositeAssertion()
           
XorCompositeAssertion(QName qname)
           

 

Method Summary
 void addAssertion(IAssertion assertion)
          Adds an assertion as one of its terms
 IAssertion createInstance(QName qname)
          Creates the appropriate assertion instance NOTE: The base implementation must be overriden by the subclasses!
 IAssertion createInstance(QName qname, boolean setExtensions)
           
 boolean equals(Object obj)
          Compares the Assertionlist of two policies .It ignores the order of the Assertions.
 int hashCode()
          Returns an integer value which is uniquely identifies an object of this class.
 IAssertion intersect(IAssertion assertion, IPolicyRegistry reg, IIntersectionContext context)
          Returns an assertion which is equivalent of intersect of self and argument.
 boolean isIdentical(Object obj)
          It is same as equals method except it emphasizes on the order, while equlas doesn't.
 IAssertion merge(IAssertion assertion, IPolicyRegistry reg)
          Returns the equivalent of merge of self and argument.
 IAssertion normalize(IPolicyRegistry reg)
           
 String toString()
          Returns the assertion list of a policy as a string

 

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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait

 

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

 

Methods inherited from interface oracle.wsm.policy.advertisement.IAssertionAdvertiser
advertiseOracleWSPolicy, advertiseWSPolicy

 

Constructor Detail

XorCompositeAssertion

public XorCompositeAssertion()

XorCompositeAssertion

public XorCompositeAssertion(QName qname)

Method Detail

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

Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager
11g (11.1.1)

E10689-01


Copyright © 2007, 2009, Oracle and/or its affiliates. All rights reserved.