@ThreadSafe public class XPathFilteringStage extends BaseStage<Element>
DOMElementItem is removed if the XPath expression evaluates as true.
This stage requires the following properties be set prior to initialization:
xpathExpressionnamespaceContext| Modifier and Type | Field and Description |
|---|---|
private Logger |
log
Class logger.
|
private NamespaceContext |
namespaceContext
The
NamespaceContext to use in interpreting the XPath expression. |
private String |
xpathExpression
The XPath expression to execute on each
DOMElementItem. |
| Constructor and Description |
|---|
XPathFilteringStage() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doDestroy() |
void |
doExecute(Collection<Item<Element>> metadataCollection)
Performs the stage processing on the given Item collection.
|
protected void |
doInitialize() |
NamespaceContext |
getNamespaceContext()
Gets the
NamespaceContext to use in interpreting the XPath expression. |
String |
getXPathExpression()
Gets the XPath expression to execute on each
DOMElementItem. |
void |
setNamespaceContext(NamespaceContext context)
Sets the
NamespaceContext to use in interpreting the XPath expression. |
void |
setXPathExpression(String expression)
Sets the XPath expression to execute on each
DOMElementItem. |
execute, getCollectionPredicate, setCollectionPredicatesetIdgetIddestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, isDestroyedprivate final Logger log
private String xpathExpression
DOMElementItem.private NamespaceContext namespaceContext
NamespaceContext to use in interpreting the XPath expression.@Nullable public String getXPathExpression()
DOMElementItem.DOMElementItempublic void setXPathExpression(@Nonnull@NotEmpty String expression)
DOMElementItem.expression - XPath expression to execute on each DOMElementItem@Nonnull public NamespaceContext getNamespaceContext()
NamespaceContext to use in interpreting the XPath expression.NamespaceContext to use in interpreting the XPath expressionpublic void setNamespaceContext(@Nullable NamespaceContext context)
NamespaceContext to use in interpreting the XPath expression.context - NamespaceContext to use in interpreting the XPath expressionpublic void doExecute(@Nonnull@NonnullElements Collection<Item<Element>> metadataCollection)
The stage is guaranteed to be have been initialized and not destroyed when this is invoked.
protected void doDestroy()
doDestroy in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponentprotected void doInitialize()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize in class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponentnet.shibboleth.utilities.java.support.component.ComponentInitializationExceptionCopyright © 1999–2016. All rights reserved.