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 ElementsAssertion

java.lang.Object
  extended by oracle.wsm.policy.model.impl.SimpleAssertion
      extended by oracle.wsm.policy.model.impl.ElementsAssertion

All Implemented Interfaces:
Serializable, IAssertionAdvertiser, IAssertion, IElementsAssertion, ISimpleAssertion, ISimpleOracleAssertion, IDeSerializer, ISerializer
Direct Known Subclasses:
EncryptedElementsAssertion, RequiredElementsAssertion, SignedElementsAssertion

public abstract class ElementsAssertion
extends SimpleAssertion
implements IElementsAssertion, ISerializer, IDeSerializer
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
protected ElementsAssertion()
           
  ElementsAssertion(QName qname)
           

 

Method Summary
 void addXPathExpression(Collection<String> exprs)
          Adding all the xpath expressions in the exprs list to the ElementAssertion
 void addXPathExpression(String expr)
           
 void advertiseOracleWSPolicy(AdvertisementContext context)
          Generate advertizable Oracle WS Policy with Oracle extensions
 void advertiseWSPolicy(AdvertisementContext context)
          Generate interoperable WS-Policy with no Oracle Extensions.
abstract  IAssertion createInstance(QName qname)
          Creates the appropriate assertion instance NOTE: The base implementation must be overriden by the subclasses!
abstract  IAssertion createInstance(QName qname, boolean setExtensions)
           
 boolean equals(Object obj)
          Compares the Assertionlist of two policies .It ignores the order of the Assertions.
 ArrayList<String> getXPathExpressions()
           
 String getXPathVersion()
           
 int hashCode()
          Returns an integer value which is uniquely identifies an object of this class.
 Object parse(Element element, ParseContext ctx)
           
 void setXPathVersion(String pathVersion)
           
 String toString()
          Returns the assertion list of a policy as a string
 void write(Object obj, MarshalContext ctx)
           
protected  void writeBindings(ISimpleOracleAssertion ioa, MarshalContext ctx)
           

 

Methods inherited from class oracle.wsm.policy.model.impl.SimpleAssertion
addAttribute, cloneAttrs, getAssertionType, getAttachTo, getAttribute, getAttributes, getBindings, getCategory, getCopyOfAssertion, getDescription, getDescription, getDigest, getDigest, getDigestForAttrs, getGuard, getName, getParent, getQName, getStringForMatching, getStrValue, getUniquePathToAssertion, getWSPolicy15QName, getWSPolicy2006QName, hasBindings, hasGuard, hasParent, intersect, intersect, isEnforced, isIdentical, isIncludedInDigestCalculation, isNormalized, isOptional, isSilent, merge, merge, normalize, normalize, removeAttribute, removeAttrsForOracleWSPolicyAdvertisement, removeAttrsForWSPolicyAdvertisement, removeBindings, removeGuard, setAttachTo, setAttribute, setAttributes, setBindings, setCategory, setDefaultValues, setDescription, setEnforced, setGuard, setName, setNormalized, setOptional, setParent, setSilent, setStrValue, validate

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface oracle.wsm.policy.model.IAssertion
addAttribute, getAssertionType, getAttribute, getAttributes, getDigest, getDigest, getParent, getQName, getStringForMatching, hasParent, intersect, intersect, isIdentical, isNormalized, isOptional, merge, merge, normalize, normalize, removeAttribute, setAttributes, setNormalized, setOptional, setParent, validate

 

Methods inherited from interface oracle.wsm.policy.model.ISimpleOracleAssertion
getAttachTo, getBindings, getCategory, getDescription, getDescription, getGuard, getName, hasBindings, hasGuard, isEnforced, isSilent, removeBindings, removeGuard, setAttachTo, setBindings, setCategory, setDescription, setEnforced, setGuard, setName, setSilent

 

Constructor Detail

ElementsAssertion

protected ElementsAssertion()

ElementsAssertion

public ElementsAssertion(QName qname)

Method Detail

getXPathExpressions

public ArrayList<String> getXPathExpressions()
Specified by:
getXPathExpressions in interface IElementsAssertion
Returns:
Returns the xPathExpressions.

addXPathExpression

public void addXPathExpression(String expr)
Specified by:
addXPathExpression in interface IElementsAssertion

addXPathExpression

public void addXPathExpression(Collection<String> exprs)
Adding all the xpath expressions in the exprs list to the ElementAssertion
Specified by:
addXPathExpression in interface IElementsAssertion
Parameters:
exprs -

getXPathVersion

public String getXPathVersion()
Specified by:
getXPathVersion in interface IElementsAssertion
Returns:
Returns the xPathVersion.

setXPathVersion

public void setXPathVersion(String pathVersion)
Specified by:
setXPathVersion in interface IElementsAssertion
Parameters:
pathVersion - The xPathVersion to set.

createInstance

public abstract 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 abstract IAssertion createInstance(QName qname,
                                          boolean setExtensions)
Overrides:
createInstance in class SimpleAssertion

writeBindings

protected void writeBindings(ISimpleOracleAssertion ioa,
                             MarshalContext ctx)
                      throws PolicySerializationFailedException
Throws:
PolicySerializationFailedException

parse

public Object parse(Element element,
                    ParseContext ctx)
             throws PolicyParseFailedException
Specified by:
parse in interface IDeSerializer
Throws:
PolicyParseFailedException

write

public void write(Object obj,
                  MarshalContext ctx)
           throws PolicySerializationFailedException
Specified by:
write in interface ISerializer
Throws:
PolicySerializationFailedException

advertiseWSPolicy

public void advertiseWSPolicy(AdvertisementContext context)
                       throws AdvertisementException
Generate interoperable WS-Policy with no Oracle Extensions.
Specified by:
advertiseWSPolicy in interface IAssertionAdvertiser
Overrides:
advertiseWSPolicy in class SimpleAssertion
Parameters:
config -
policyAttachment -
Throws:
AdvertisementException

advertiseOracleWSPolicy

public void advertiseOracleWSPolicy(AdvertisementContext context)
                             throws AdvertisementException
Generate advertizable Oracle WS Policy with Oracle extensions
Specified by:
advertiseOracleWSPolicy in interface IAssertionAdvertiser
Overrides:
advertiseOracleWSPolicy in class SimpleAssertion
Parameters:
context -
Throws:
AdvertisementException

equals

public boolean equals(Object obj)
Description copied from class: SimpleAssertion
Compares the Assertionlist of two policies .It ignores the order of the Assertions.
Overrides:
equals in class SimpleAssertion

toString

public String toString()
Description copied from class: SimpleAssertion
Returns the assertion list of a policy as a string
Overrides:
toString in class SimpleAssertion

hashCode

public int hashCode()
Description copied from class: SimpleAssertion
Returns an integer value which is uniquely identifies an object of this class.
Overrides:
hashCode 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.