org.systinet.wasp.policy
Class Policy

java.lang.Object
  extended byorg.systinet.wasp.policy.PolicyElement
      extended byorg.systinet.wasp.policy.PolicyCompositor
          extended byorg.systinet.wasp.policy.PolicyAllOperator
              extended byorg.systinet.wasp.policy.Policy

public abstract class Policy
extends PolicyAllOperator

This class represents a policy expression according WS-Policy. Policy expressions are a compact and interoperable means to author and convey policy assertions.

A policy can be created with the help of PolicyManager and can be attached to a DomainExpression.

Since:
5.0
Component:
Core

Constructor Summary
Policy()
           
 
Method Summary
abstract  javax.xml.transform.Source getContent()
          Gets the content of this object as Source
abstract  QName getName()
          Gets the qualified name of the policy (Name, TargetNamespace) attributes.
 
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

Policy

public Policy()
Method Detail

getName

public abstract QName getName()
Gets the qualified name of the policy (Name, TargetNamespace) attributes.

Returns:
the name of the policy

getContent

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

Overrides:
getContent in class PolicyAllOperator
Returns:
the content of this object as Source
Throws:
PolicyException - when an error occurs