Class EntityDocumentProcessorBroker
java.lang.Object
org.wikidata.wdtk.datamodel.interfaces.EntityDocumentProcessorBroker
- All Implemented Interfaces:
EntityDocumentProcessor
Simple broker implementation of
EntityDocumentProcessor
which
distributes entity documents to multiple registered listeners.- Author:
- Markus Kroetzsch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
processItemDocument
(ItemDocument itemDocument) Processes the given ItemDocument.void
processLexemeDocument
(LexemeDocument lexemeDocument) Processes the given LexemeDocument.void
processPropertyDocument
(PropertyDocument propertyDocument) Processes the given PropertyDocument.void
registerEntityDocumentProcessor
(EntityDocumentProcessor entityDocumentProcessor) Registers a listener which will be called for all entity documents that are processed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.wikidata.wdtk.datamodel.interfaces.EntityDocumentProcessor
processEntityRedirectDocument, processMediaInfoDocument
-
Constructor Details
-
EntityDocumentProcessorBroker
public EntityDocumentProcessorBroker()
-
-
Method Details
-
registerEntityDocumentProcessor
Registers a listener which will be called for all entity documents that are processed. The method avoids duplicates in the sense that the exact same object cannot be registered twice.- Parameters:
entityDocumentProcessor
- the listener to register
-
processItemDocument
Description copied from interface:EntityDocumentProcessor
Processes the given ItemDocument.- Specified by:
processItemDocument
in interfaceEntityDocumentProcessor
- Parameters:
itemDocument
- the ItemDocument
-
processPropertyDocument
Description copied from interface:EntityDocumentProcessor
Processes the given PropertyDocument.- Specified by:
processPropertyDocument
in interfaceEntityDocumentProcessor
- Parameters:
propertyDocument
- the PropertyDocument
-
processLexemeDocument
Description copied from interface:EntityDocumentProcessor
Processes the given LexemeDocument.- Specified by:
processLexemeDocument
in interfaceEntityDocumentProcessor
- Parameters:
lexemeDocument
- the LexemeDocument
-