Difference between revisions of "DocumentElementGranule Code"
From DocDataFlow
(Created page with "The DocumentElementGranule class is derived from the ''Granule'' class. It has a ''class identifier'' of <code>com.rorohiko.granule.docu...") |
(No difference)
|
Latest revision as of 02:18, 30 December 2013
The DocumentElementGranule class is derived from the Granule class.
It has a class identifier of com.rorohiko.granule.documentelement
.
It is used as the base granule class for granule classes that 'wrap' various document elements.
The following methods are provided:
-
documentElementGranule.getAppContext()
: get the current application context for this document granule. In the first version of Crawler, this is a single global context, shared by the whole Crawler session, but in the future, Crawler might support multiple concurrent applications during a single conversion session, in which case the appContext can vary between document granules.
-
documentElementGranule.getDocumentGranule()
: returns the 'owning document' for this granule.