public class AttributeAssignmentExpression extends Object
| Constructor and Description |
|---|
AttributeAssignmentExpression(URI attributeId,
URI category,
Expression expression,
String issuer)
Constructor that creates a new
AttributeAssignmentExpression based on
the given elements. |
| Modifier and Type | Method and Description |
|---|---|
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. |
public AttributeAssignmentExpression(URI attributeId, URI category, Expression expression, String issuer)
AttributeAssignmentExpression based on
the given elements.attributeId - attribute id of the AttributeAssignmentExpression elementcategory - category of the AttributeAssignmentExpression element whether it is subject, action and etcexpression - Expression that contains in AttributeAssignmentExpressionissuer - issuer of the AttributeAssignmentpublic static AttributeAssignmentExpression getInstance(Node root, PolicyMetaData metaData) throws ParsingException
AttributeAssignmentExpression based on its DOM node.root - root the node to parse for the AttributeAssignmentmetaData - meta-date associated with the policyAttributeAssignmentExpression constructed by parsingParsingException - if the DOM node is invalidpublic Set<AttributeAssignment> evaluate(EvaluationCtx ctx)
Expression element and create new Set of
AttributeAssignmentctx - EvaluationCtxSet of AttributeAssignmentpublic void encode(StringBuilder builder)
AttributeAssignmentExpression into its XML form and writes this out to the provided
StringBuilderbuilder - string stream into which the XML-encoded data is writtenCopyright © 2018 WSO2. All rights reserved.