|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.shibboleth.metadata.dom.XPathItemSelectionStrategy
@ThreadSafe public class XPathItemSelectionStrategy
Item selection strategy which selects items on the basis of a boolean XPath expression.
| Field Summary | |
|---|---|
private XPathExpression |
compiledExpression
Compiled form of the expression. |
private Logger |
log
Class logger. |
private NamespaceContext |
namespaceContext
The NamespaceContext to use in interpreting the XPath expression. |
| Constructor Summary | |
|---|---|
XPathItemSelectionStrategy(String expression,
NamespaceContext context)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
isSelectedItem(DomElementItem item)
Determines if the item meets the expected criteria. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final Logger log
private final XPathExpression compiledExpression
XPathExpression objects are reusable but are not thread-safe, so access to
the compiled expression must be protected.
private final NamespaceContext namespaceContext
NamespaceContext to use in interpreting the XPath expression.
| Constructor Detail |
|---|
public XPathItemSelectionStrategy(String expression,
NamespaceContext context)
throws XPathExpressionException
expression - XPath expression to execute.context - Namespace context to use for the expression, expressed as a NamespaceContext.
XPathExpressionException - if there is a problem compiling the expression| Method Detail |
|---|
public boolean isSelectedItem(DomElementItem item)
isSelectedItem in interface ItemSelectionStrategy<DomElementItem>item - the being inspected, never null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||