AV
- AttributeSelector evaluation results' primitive returnTypepublic interface AttributeSelectorExpression<AV extends AttributeValue> extends Expression<Bag<AV>>
Modifier and Type | Method and Description |
---|---|
Bag<AV> |
evaluate(net.sf.saxon.s9api.XdmNode contentElement,
Optional<net.sf.saxon.s9api.XPathExecutable> contextPathEvaluator,
EvaluationContext context)
Evaluates with input <Content> element and optional XPath to be used directly as if it was coming from the value of the Content element and attribute referenced by ContextSelectorId
directly.
|
AttributeSelectorId |
getAttributeSelectorId()
Get AttributeSelector identifier (category, contextSelectorId, path)
|
Optional<AttributeFqn> |
getContextSelectorFQN()
Get the fully qualified identifier corresponding to ContextSelectorId if present
|
net.sf.saxon.s9api.XPathExecutable |
getXPath(Bag<XPathValue> xpathExpressionBag)
Create XPath evaluator from xPathExpression (XACML datatype) value in a bag, using this AttributeSelector's internal XPath compiler, so that it may be reused later as second argument to
evaluate(XdmNode, Optional, EvaluationContext) . |
boolean |
isNonEmptyBagRequired()
Indicates whether the expression must evaluate to a non-empty bag.
|
evaluate, getReturnType, getValue
AttributeSelectorId getAttributeSelectorId()
Optional<AttributeFqn> getContextSelectorFQN()
boolean isNonEmptyBagRequired()
Bag<AV> evaluate(net.sf.saxon.s9api.XdmNode contentElement, Optional<net.sf.saxon.s9api.XPathExecutable> contextPathEvaluator, EvaluationContext context) throws IndeterminateEvaluationException
contentElement
- XML element used as (replacement for) this AttributeSelector's <Content>contextPathEvaluator
- (optional) XPath expression evaluator used as replacement for the XPath expression usually given by the attribute referenced by this AttributeSelector's ContextSelectorId, if it is
definedcontext
- evaluation contextIndeterminateEvaluationException
- if evaluation is "Indeterminate" (some error occurred during evaluation, see XACML core specification)net.sf.saxon.s9api.XPathExecutable getXPath(Bag<XPathValue> xpathExpressionBag) throws IllegalArgumentException
evaluate(XdmNode, Optional, EvaluationContext)
.xpathExpressionBag
- bag expected to contain a single value of xPathExpression datatype (XACML)xpathExpressionBag
IllegalArgumentException
- iff xpathExpressionBag
is null or empty or its single value is not a valid XPath expressionCopyright © 2012–2020. All rights reserved.