KItinerary::JsonLdDocumentProcessor
#include <jsonlddocumentprocessor.h>
Public Member Functions | |
bool | canHandleData (const QByteArray &encodedData, QStringView fileName) const override |
ExtractorDocumentNode | createNodeFromData (const QByteArray &encodedData) const override |
void | preExtract (ExtractorDocumentNode &node, const ExtractorEngine *engine) const override |
Public Member Functions inherited from KItinerary::ExtractorDocumentProcessor | |
virtual QJSValue | contentToScriptValue (const ExtractorDocumentNode &node, QJSEngine *engine) const |
virtual ExtractorDocumentNode | createNodeFromContent (const QVariant &decodedData) const |
virtual void | destroyNode (ExtractorDocumentNode &node) const |
virtual void | expandNode (ExtractorDocumentNode &node, const ExtractorEngine *engine) const |
virtual bool | matches (const ExtractorFilter &filter, const ExtractorDocumentNode &node) const |
virtual void | postExtract (ExtractorDocumentNode &node, const ExtractorEngine *engine) const |
virtual void | reduceNode (ExtractorDocumentNode &node) const |
Additional Inherited Members | |
Protected Member Functions inherited from KItinerary::ExtractorDocumentProcessor | |
template<typename T > | |
void | destroyIfOwned (ExtractorDocumentNode &node) const |
Static Protected Member Functions inherited from KItinerary::ExtractorDocumentProcessor | |
static bool | matchesGadget (const ExtractorFilter &filter, const QMetaObject *mo, const void *obj) |
template<typename T > | |
static bool | matchesGadget (const ExtractorFilter &filter, const T *obj) |
Detailed Description
Processor for raw JSON-LD data.
This is simply a pass-through for JSON data, so the using code can apply post-processing to that.
Definition at line 16 of file jsonlddocumentprocessor.h.
Member Function Documentation
◆ canHandleData()
|
overridevirtual |
Fast check whether the given encoded data can possibly be processed by this instance.
The default implementation returns false, relying on QMimeDatabase for detection.
Reimplemented from KItinerary::ExtractorDocumentProcessor.
Definition at line 19 of file jsonlddocumentprocessor.cpp.
◆ createNodeFromData()
|
overridevirtual |
Create a document node from raw data.
The default implementation produces in invalid node.
Reimplemented from KItinerary::ExtractorDocumentProcessor.
Definition at line 27 of file jsonlddocumentprocessor.cpp.
◆ preExtract()
|
overridevirtual |
Called before extractors are applied to node
.
This can be used for performing document type specific extraction steps. The default implementation does nothing.
Reimplemented from KItinerary::ExtractorDocumentProcessor.
Definition at line 50 of file jsonlddocumentprocessor.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.