org.systinet.wasp.policy
Class PolicyOneOrMoreOperator

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

public class PolicyOneOrMoreOperator
extends PolicyCompositor

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

Since:
5.0
Component:
Core

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

PolicyOneOrMoreOperator

public PolicyOneOrMoreOperator()
Creates an instance of this class.


PolicyOneOrMoreOperator

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

PolicyOneOrMoreOperator

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

Parameters:
usage - the operator usage
preference - the oprator 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