public class EntityDocumentProcessorFilter extends Object implements EntityDocumentProcessor
EntityDocumentProcessor
that acts as a filter,
removing some of the data from EntityDocument
objects before passing
them on to another processor. There is an overhead involved in using this,
even if no filters are set, since a deep copy of the data is created to
filter it.Constructor and Description |
---|
EntityDocumentProcessorFilter(EntityDocumentProcessor entityDocumentProcessor,
DocumentDataFilter filter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
processItemDocument(ItemDocument itemDocument)
Processes the given ItemDocument.
|
void |
processLexemeDocument(LexemeDocument lexemeDocument)
Processes the given LexemeDocument.
|
void |
processPropertyDocument(PropertyDocument propertyDocument)
Processes the given PropertyDocument.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
processEntityRedirectDocument, processMediaInfoDocument
public EntityDocumentProcessorFilter(EntityDocumentProcessor entityDocumentProcessor, DocumentDataFilter filter)
entityDocumentProcessor
- the processor to use on the filtered datafilter
- the filter settings to be usedpublic void processItemDocument(ItemDocument itemDocument)
EntityDocumentProcessor
processItemDocument
in interface EntityDocumentProcessor
itemDocument
- the ItemDocumentpublic void processPropertyDocument(PropertyDocument propertyDocument)
EntityDocumentProcessor
processPropertyDocument
in interface EntityDocumentProcessor
propertyDocument
- the PropertyDocumentpublic void processLexemeDocument(LexemeDocument lexemeDocument)
EntityDocumentProcessor
processLexemeDocument
in interface EntityDocumentProcessor
lexemeDocument
- the LexemeDocumentCopyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage