public class AnyOfSelection extends Object
Constructor and Description |
---|
AnyOfSelection(List<AllOfSelection> allOfSelections)
Constructor that creates a new
AnyOfSelection based on the given elements. |
Modifier and Type | Method and Description |
---|---|
void |
encode(StringBuilder builder)
Encodes this
AnyOfSelection into its XML form and writes this out to the provided
StringBuilder |
List<AllOfSelection> |
getAllOfSelections() |
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). |
public AnyOfSelection(List<AllOfSelection> allOfSelections)
AnyOfSelection
based on the given elements.allOfSelections
- a List
of AllOfSelection
elementspublic static AnyOfSelection getInstance(Node root, PolicyMetaData metaData) throws ParsingException
AnyOfSelection
based on its DOM node.root
- the node to parse for the AnyOfSelectionmetaData
- meta-date associated with the policyAnyOfSelection
constructed by parsingParsingException
- if the DOM node is invalidpublic MatchResult match(EvaluationCtx context)
AnyOfSelection
matches the input request (whether it
is applicable).context
- the representation of the requestpublic List<AllOfSelection> getAllOfSelections()
public void encode(StringBuilder builder)
AnyOfSelection
into its XML form and writes this out to the provided
StringBuilder
builder
- string stream into which the XML-encoded data is writtenCopyright © 2021 WSO2. All rights reserved.