org.systinet.wasp.policy
Class PolicyAllOperator

java.lang.Object
  extended byorg.systinet.wasp.policy.PolicyElement
      extended byorg.systinet.wasp.policy.PolicyCompositor
          extended byorg.systinet.wasp.policy.PolicyAllOperator
Direct Known Subclasses:
Policy

public class PolicyAllOperator
extends PolicyCompositor

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

Since:
5.0
Component:
Core

Constructor Summary
PolicyAllOperator()
          Creates an instance of this class.
PolicyAllOperator(PolicyUsage usage, int preference)
          Creates an instance of this class.
PolicyAllOperator(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

PolicyAllOperator

public PolicyAllOperator()
Creates an instance of this class.


PolicyAllOperator

public PolicyAllOperator(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

PolicyAllOperator

public PolicyAllOperator(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