org.systinet.wasp.policy
Class PolicyExactlyOneOperator

java.lang.Object
  extended byorg.systinet.wasp.policy.PolicyElement
      extended byorg.systinet.wasp.policy.PolicyCompositor
          extended byorg.systinet.wasp.policy.PolicyExactlyOneOperator

public class PolicyExactlyOneOperator
extends PolicyCompositor

This class represents WS-Policy ExatlyOne operator. This operator is considered to be satisfied if exactly one of its child elements is satisfied. This has meaning mainly for computing of EffectivePolicy.

Since:
5.0
Component:
Core

Constructor Summary
PolicyExactlyOneOperator()
          Creates an instance of this class.
PolicyExactlyOneOperator(PolicyUsage usage, int preference)
          Creates an instance of this class.
PolicyExactlyOneOperator(javax.xml.transform.Source source)
          Creates instance of this object from given XML source.
 
Method Summary
 javax.xml.transform.Source getContent()
          Gets the content of this object as Source
 
Methods inherited from class org.systinet.wasp.policy.PolicyCompositor
add, getElements, getId, remove, setId
 
Methods inherited from class org.systinet.wasp.policy.PolicyElement
getParentElement, getPreference, getUsage, readStandardAttributes, setParentElement, setPreference, setUsage, writeStandardAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyExactlyOneOperator

public PolicyExactlyOneOperator()
Creates an instance of this class.


PolicyExactlyOneOperator

public PolicyExactlyOneOperator(javax.xml.transform.Source source)
                         throws PolicyException
Creates instance of this object from given XML source.

Parameters:
source - XML source
Throws:
PolicyException - when an error occurs during loading

PolicyExactlyOneOperator

public PolicyExactlyOneOperator(PolicyUsage usage,
                                int preference)
Creates an instance of this class.

Parameters:
usage - the operator usage
preference - the operator preference
See Also:
PolicyUsage
Method Detail

getContent

public javax.xml.transform.Source getContent()
                                      throws PolicyException
Gets the content of this object as Source

Specified by:
getContent in class PolicyCompositor
Returns:
the content of this object as Source
Throws:
PolicyException - when an error occurs