@ThreadSafe public abstract class AbstractNamespacesStrippingStage extends BaseStage<Element>
removingNamespace(java.lang.String) function.
Attributes without an explicit namespace prefix will never be removed.| Constructor and Description |
|---|
AbstractNamespacesStrippingStage() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(Collection<Item<Element>> items)
Performs the stage processing on the given Item collection.
|
private void |
processAttributes(Element element)
Process the attributes on an element.
|
private void |
processElement(Element element,
int depth)
Process an individual DOM element.
|
private void |
processItem(Item<Element> item)
Processes the given
Item. |
protected abstract boolean |
removingNamespace(String namespace)
Determine whether a particular namespace should be stripped.
|
execute, getCollectionPredicate, setCollectionPredicatesetIddoInitialize, getIddestroy, doDestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, isDestroyedprivate final Logger log
protected abstract boolean removingNamespace(String namespace)
namespace - potentially stripped namespacetrue if this namespace should be strippedprivate void processItem(@Nonnull Item<Element> item)
Item.item - Item to process.private void processAttributes(@Nonnull Element element)
element - the Element to processprivate void processElement(@Nonnull Element element, int depth)
element - element to processdepth - processing depth, starting with 0 for the document element.protected void doExecute(@Nonnull@NonnullElements Collection<Item<Element>> items) throws StageProcessingException
BaseStageThe stage is guaranteed to be have been initialized and not destroyed when this is invoked.
doExecute in class BaseStage<Element>items - collection to be processedStageProcessingException - thrown if there is an unrecoverable problem when processing the stageCopyright © 1999–2016. All rights reserved.