EntityDocumentProcessorpublic class EntityDocumentProcessorFilter extends java.lang.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 | Description |
|---|---|
EntityDocumentProcessorFilter(EntityDocumentProcessor entityDocumentProcessor,
DocumentDataFilter filter) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
processItemDocument(ItemDocument itemDocument) |
Processes the given ItemDocument.
|
void |
processPropertyDocument(PropertyDocument propertyDocument) |
Processes the given PropertyDocument.
|
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)
EntityDocumentProcessorprocessItemDocument in interface EntityDocumentProcessoritemDocument - the ItemDocumentpublic void processPropertyDocument(PropertyDocument propertyDocument)
EntityDocumentProcessorprocessPropertyDocument in interface EntityDocumentProcessorpropertyDocument - the PropertyDocumentCopyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage