org.wso2.balana.xacml3
Class Advice

java.lang.Object
  extended by org.wso2.balana.xacml3.Advice

public class Advice
extends Object

Represents the AdviceType XML type in XACML. Advice are introduced with XACML 3


Constructor Summary
Advice(URI adviceId, List<AttributeAssignment> assignments)
          Constructor that creates a new Advice based on the given elements.
 
Method Summary
 String encode()
          Encodes this Advice into its XML form
 void encode(StringBuilder builder)
          Encodes this Advice into its XML form and writes this out to the provided StringBuilder
 URI getAdviceId()
           
 List<AttributeAssignment> getAssignments()
           
static Advice getInstance(Node root)
          Creates a Advice based on its DOM node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Advice

public Advice(URI adviceId,
              List<AttributeAssignment> assignments)
Constructor that creates a new Advice based on the given elements.

Parameters:
adviceId - Identifier that uniquely identify the Advice
assignments - List of AttributeAssignment
Method Detail

encode

public String encode()
Encodes this Advice into its XML form

Returns:
String

getInstance

public static Advice getInstance(Node root)
                          throws ParsingException
Creates a Advice based on its DOM node.

Parameters:
root - the DOM root of a AdviceType
Returns:
an instance of an advice
Throws:
ParsingException - if the structure isn't valid

getAdviceId

public URI getAdviceId()

getAssignments

public List<AttributeAssignment> getAssignments()

encode

public void encode(StringBuilder builder)
Encodes this Advice into its XML form and writes this out to the provided StringBuilder

Parameters:
builder - string stream into which the XML-encoded data is written


Copyright © 2015 WSO2. All rights reserved.