Package net.shibboleth.metadata.dom
Class ElementWhitespaceTrimmingStage
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.metadata.pipeline.AbstractStage<T>
net.shibboleth.metadata.pipeline.AbstractIteratingStage<Element>
net.shibboleth.metadata.dom.AbstractDOMTraversalStage<DOMTraversalContext>
net.shibboleth.metadata.dom.AbstractElementVisitingStage
net.shibboleth.metadata.dom.ElementWhitespaceTrimmingStage
- All Implemented Interfaces:
Stage<Element>,net.shibboleth.shared.component.Component,net.shibboleth.shared.component.DestructableComponent,net.shibboleth.shared.component.IdentifiableComponent,net.shibboleth.shared.component.IdentifiedComponent,net.shibboleth.shared.component.InitializableComponent
Stage to trim leading and trailing whitespace from the text content of named elements
within a
DOMElementItem.- Since:
- 0.9.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ElementVisitorVisitor to apply to each visited element. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvisit(Element e, DOMTraversalContext context) Visit a particularElement.Methods inherited from class net.shibboleth.metadata.dom.AbstractElementVisitingStage
applicable, buildContext, getElementNames, setElementName, setElementNamesMethods inherited from class net.shibboleth.metadata.dom.AbstractDOMTraversalStage
addError, doExecute, errorPrefixMethods inherited from class net.shibboleth.metadata.pipeline.AbstractIteratingStage
doExecuteMethods inherited from class net.shibboleth.metadata.pipeline.AbstractStage
execute, getCollectionPredicate, setCollectionPredicateMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
doInitialize, ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.DestructableComponent
destroy, isDestroyedMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getIdMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
visitor
Visitor to apply to each visited element.
-
-
Constructor Details
-
ElementWhitespaceTrimmingStage
public ElementWhitespaceTrimmingStage()
-
-
Method Details
-
visit
Description copied from class:AbstractDOMTraversalStageVisit a particularElement.- Specified by:
visitin classAbstractDOMTraversalStage<DOMTraversalContext>- Parameters:
e- theElementto visitcontext- the traversal context
-