net.shibboleth.metadata.dom
Class XSLValidationStage
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponent
net.shibboleth.metadata.pipeline.BaseStage<DomElementItem>
net.shibboleth.metadata.dom.AbstractXSLProcessingStage
net.shibboleth.metadata.dom.XSLValidationStage
- All Implemented Interfaces:
- Stage<DomElementItem>, net.shibboleth.utilities.java.support.component.Component, net.shibboleth.utilities.java.support.component.DestructableComponent, net.shibboleth.utilities.java.support.component.IdentifiableComponent, net.shibboleth.utilities.java.support.component.InitializableComponent
@ThreadSafe
public class XSLValidationStage
- extends AbstractXSLProcessingStage
A pipeline which "validates" each element in the DomElementItem collection via an XSL stylesheet. The results
of the transform are discarded but the source element receives InfoStatus,
WarningStatus, and ErrorStatus metadata via the
AbstractXSLProcessingStage.StatusInfoAppendingErrorListener.
| Methods inherited from class net.shibboleth.metadata.dom.AbstractXSLProcessingStage |
doDestroy, doExecute, doInitialize, getTransformAttributes, getTransformFeatures, getTransformParameters, getXslResource, setTransformAttributes, setTransformFeatures, setTransformParameters, setXslResource |
| Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponent |
getId |
| Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent |
destroy, initialize, isDestroyed, isInitialized |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.shibboleth.utilities.java.support.component.DestructableComponent |
destroy, isDestroyed |
| Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiableComponent |
getId |
| Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent |
initialize, isInitialized |
XSLValidationStage
public XSLValidationStage()
executeTransformer
protected void executeTransformer(@Nonnull
Transformer transformer,
@Nonnull@NonnullElements
Collection<DomElementItem> itemCollection)
throws StageProcessingException,
TransformerConfigurationException
- Executes the XSLT transform on the given collection of Items.
- Specified by:
executeTransformer in class AbstractXSLProcessingStage
- Parameters:
transformer - The transform to be applied to each Item. Already has all AbstractXSLProcessingStage.transformParameters set.itemCollection - the Items to which the transform should be applied
- Throws:
StageProcessingException - thrown if there is a problem applying the transform to Items
TransformerConfigurationException - thrown if there is a problem with the Transform itself
Copyright © 1999-2012. All Rights Reserved.