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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessItemDocument(ItemDocument itemDocument) Processes the given ItemDocument.voidprocessLexemeDocument(LexemeDocument lexemeDocument) Processes the given LexemeDocument.voidprocessPropertyDocument(PropertyDocument propertyDocument) Processes the given PropertyDocument.voidregisterEntityDocumentProcessor(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, waitMethods 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:EntityDocumentProcessorProcesses the given ItemDocument.- Specified by:
processItemDocumentin interfaceEntityDocumentProcessor- Parameters:
itemDocument- the ItemDocument
-
processPropertyDocument
Description copied from interface:EntityDocumentProcessorProcesses the given PropertyDocument.- Specified by:
processPropertyDocumentin interfaceEntityDocumentProcessor- Parameters:
propertyDocument- the PropertyDocument
-
processLexemeDocument
Description copied from interface:EntityDocumentProcessorProcesses the given LexemeDocument.- Specified by:
processLexemeDocumentin interfaceEntityDocumentProcessor- Parameters:
lexemeDocument- the LexemeDocument
-