Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sun.xacml
Class Obligation  view Obligation download Obligation.java

java.lang.Object
  extended bycom.sun.xacml.Obligation

public class Obligation
extends java.lang.Object

Represents the ObligationType XML type in XACML. This also stores all the AttriubteAssignmentType XML types.

Since:
1.0

Field Summary
private  java.util.List assignments
           
private  int fulfillOn
           
private  java.net.URI id
           
 
Constructor Summary
Obligation(java.net.URI id, int fulfillOn, java.util.List assignments)
          Constructor that takes all the data associated with an obligation.
 
Method Summary
 void encode(java.io.OutputStream output)
          Encodes this Obligation into its XML form and writes this out to the provided OutputStream with no indentation.
 void encode(java.io.OutputStream output, Indenter indenter)
          Encodes this Obligation into its XML form and writes this out to the provided OutputStream with indentation.
 java.util.List getAssignments()
          Returns the attribute assignment data in this obligation.
 int getFulfillOn()
          Returns effect that will cause this obligation to be included in a response
 java.net.URI getId()
          Returns the id of this obligation
static Obligation getInstance(org.w3c.dom.Node root)
          Creates an instance of Obligation based on the DOM root node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

private java.net.URI id

fulfillOn

private int fulfillOn

assignments

private java.util.List assignments
Constructor Detail

Obligation

public Obligation(java.net.URI id,
                  int fulfillOn,
                  java.util.List assignments)
Constructor that takes all the data associated with an obligation. The attribute assignment list contains Attribute objects, but only the fields used by the AttributeAssignmentType are used.

Method Detail

getInstance

public static Obligation getInstance(org.w3c.dom.Node root)
                              throws ParsingException
Creates an instance of Obligation based on the DOM root node.


getId

public java.net.URI getId()
Returns the id of this obligation


getFulfillOn

public int getFulfillOn()
Returns effect that will cause this obligation to be included in a response


getAssignments

public java.util.List getAssignments()
Returns the attribute assignment data in this obligation. The List contains objects of type Attribute with only the correct attribute fields being used.


encode

public void encode(java.io.OutputStream output)
Encodes this Obligation into its XML form and writes this out to the provided OutputStream with no indentation.


encode

public void encode(java.io.OutputStream output,
                   Indenter indenter)
Encodes this Obligation into its XML form and writes this out to the provided OutputStream with indentation.