org.wso2.balana.xacml3
Class AnyOfSelection

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

public class AnyOfSelection
extends Object

Represents AnyOfType in the XACML 3.0 policy schema..


Constructor Summary
AnyOfSelection(List<AllOfSelection> allOfSelections)
          Constructor that creates a new AnyOfSelection based on the given elements.
 
Method Summary
 void encode(StringBuilder builder)
          Encodes this AnyOfSelection into its XML form and writes this out to the provided StringBuilder
static AnyOfSelection getInstance(Node root, PolicyMetaData metaData)
          creates a AnyOfSelection based on its DOM node.
 MatchResult match(EvaluationCtx context)
          Determines whether this AnyOfSelection matches the input request (whether it is applicable).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnyOfSelection

public AnyOfSelection(List<AllOfSelection> allOfSelections)
Constructor that creates a new AnyOfSelection based on the given elements.

Parameters:
allOfSelections - a List of AllOfSelection elements
Method Detail

getInstance

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

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

match

public MatchResult match(EvaluationCtx context)
Determines whether this AnyOfSelection matches the input request (whether it is applicable).

Parameters:
context - the representation of the request
Returns:
the result of trying to match the group with the context

encode

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