Package net.shibboleth.metadata.dom
Class EmptyContainerStrippingStage
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.EmptyContainerStrippingStage
- 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
A stage which removes all empty instances of the named container element from DOM metadata.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidProcesses a givenItem.protected voidfinal StringGet the name of the element to strip.final StringGet the namespace of the element to strip.private booleanhasChildElements(Element element) Determines whether a given DOM element has any element children.voidsetElementName(String name) Set the name of the element to strip.voidsetElementNamespace(String namespace) Set the namespace of the element to strip.Methods 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
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
-
elementNamespace
Namespace of the element to strip. -
elementName
Name of the element to strip.
-
-
Constructor Details
-
EmptyContainerStrippingStage
public EmptyContainerStrippingStage()
-
-
Method Details
-
getElementNamespace
Get the namespace of the element to strip.- Returns:
- namespace of the element to strip
-
setElementNamespace
Set the namespace of the element to strip.- Parameters:
namespace- namespace of the element to strip
-
getElementName
Get the name of the element to strip.- Returns:
- the name of the element to strip
-
setElementName
Set the name of the element to strip.- Parameters:
name- the name of the element to strip
-
hasChildElements
Determines whether a given DOM element has any element children.- Parameters:
element- Element to check for child elements.- Returns:
- true if and only if the Element has child elements.
-
doExecute
Description copied from class:AbstractIteratingStageProcesses a givenItem.- Specified by:
doExecutein classAbstractIteratingStage<Element>- Parameters:
item-Itemon which to operate
-
doInitialize
protected void doInitialize() throws net.shibboleth.shared.component.ComponentInitializationException- Overrides:
doInitializein classnet.shibboleth.shared.component.AbstractIdentifiedInitializableComponent- Throws:
net.shibboleth.shared.component.ComponentInitializationException
-