T - type of items the stage operates on@ThreadSafe public class ItemMetadataFilterStage<T> extends AbstractItemMetadataSelectionStage<T>
Stage that filters out Item if they have a specific type of ItemMetadata attached to them.
This is useful, for example, in removing all Item elements which have an associated
ErrorStatus.| Constructor and Description |
|---|
ItemMetadataFilterStage() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(Collection<Item<T>> itemCollection,
Item<T> matchingItem,
Map<Class<? extends ItemMetadata>,List<? extends ItemMetadata>> matchingMetadata)
Performs the stage's logic on the given item that contained metadata of the given type.
|
doDestroy, doExecute, getItemIdentificationStrategy, getSelectionRequirements, setIdentificationStrategy, setSelectionRequirementsexecute, getCollectionPredicate, setCollectionPredicatesetIddoInitialize, getIddestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, isDestroyedprivate final Logger log
protected void doExecute(@Nonnull@NonnullElements Collection<Item<T>> itemCollection, Item<T> matchingItem, Map<Class<? extends ItemMetadata>,List<? extends ItemMetadata>> matchingMetadata) throws StageProcessingException
doExecute in class AbstractItemMetadataSelectionStage<T>itemCollection - current item collectionmatchingItem - matching itemmatchingMetadata - all the ItemMetadata instances that match a selection criteriaStageProcessingException - thrown if there is a problem processing the itemCopyright © 1999–2016. All rights reserved.