Commit 8235939b authored by Volker Krause's avatar Volker Krause
Browse files

Expose the document node tree for KItinerary Workbench

parent b4354807
......@@ -868,3 +868,8 @@ const ExtractorScriptEngine* ExtractorEngine::scriptEngine() const
d->m_scriptEngine.setBarcodeDecoder(&d->m_barcodeDecoder);
return &d->m_scriptEngine;
}
ExtractorDocumentNode ExtractorEngine::rootDocumentNode() const
{
return d->m_rootNode;
}
......@@ -38,6 +38,7 @@ namespace KItinerary {
class BarcodeDecoder;
class Extractor;
class ExtractorDocumentNode;
class ExtractorDocumentNodeFactory;
class ExtractorEnginePrivate;
class ExtractorRepository;
......@@ -236,6 +237,11 @@ public:
const ExtractorRepository* extractorRepository() const;
/** JavaScript execution engine for script extractors. */
const ExtractorScriptEngine* scriptEngine() const;
/** Document root node.
* Only fully populated after extraction has been performed.
* Only exposed for tooling.
*/
ExtractorDocumentNode rootDocumentNode() const;
///@endcond
private:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment