org.wso2.balana.xacml3
Class AttributeAssignmentExpression

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

public class AttributeAssignmentExpression
extends Object

Represents AttributeAssignmentExpressionType in the XACML 3.0 policy schema..


Constructor Summary
AttributeAssignmentExpression(URI attributeId, URI category, Expression expression, String issuer)
          Constructor that creates a new AttributeAssignmentExpression based on the given elements.
 
Method Summary
 void encode(StringBuilder builder)
          Encodes this AttributeAssignmentExpression into its XML form and writes this out to the provided StringBuilder
 Set<AttributeAssignment> evaluate(EvaluationCtx ctx)
          evaluates Expression element and create new Set of AttributeAssignment
static AttributeAssignmentExpression getInstance(Node root, PolicyMetaData metaData)
          creates a AttributeAssignmentExpression 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

AttributeAssignmentExpression

public AttributeAssignmentExpression(URI attributeId,
                                     URI category,
                                     Expression expression,
                                     String issuer)
Constructor that creates a new AttributeAssignmentExpression based on the given elements.

Parameters:
attributeId - attribute id of the AttributeAssignmentExpression element
category - category of the AttributeAssignmentExpression element whether it is subject, action and etc
expression - Expression that contains in AttributeAssignmentExpression
issuer - issuer of the AttributeAssignment
Method Detail

getInstance

public static AttributeAssignmentExpression getInstance(Node root,
                                                        PolicyMetaData metaData)
                                                 throws ParsingException
creates a AttributeAssignmentExpression based on its DOM node.

Parameters:
root - root the node to parse for the AttributeAssignment
metaData - meta-date associated with the policy
Returns:
a new AttributeAssignmentExpression constructed by parsing
Throws:
ParsingException - if the DOM node is invalid

evaluate

public Set<AttributeAssignment> evaluate(EvaluationCtx ctx)
evaluates Expression element and create new Set of AttributeAssignment

Parameters:
ctx - EvaluationCtx
Returns:
Set of AttributeAssignment

encode

public void encode(StringBuilder builder)
Encodes this AttributeAssignmentExpression 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.