Customizing the Link Target Reference Finder
The link target reference finder represents the support for finding references from links that indicate specific elements inside an XML document. This support will only be available if a schema is associated with the document type.
If you do not define a custom link target reference finder, the DefaultElementLocatorProvider
implementation will be used by
default. The interface that should be implemented for a custom link target reference finder is
ro.sync.ecss.extensions.api.link.ElementLocatorProvider
. As an
alternative, the ro.sync.ecss.extensions.commons.DefaultElementLocatorProvider
implementation can also be extended.
The used ElementLocatorProvider
will be queried for an
ElementLocator
when a link location
must be determined (when a link is clicked). Then, to find the corresponding (linked) element,
the obtained ElementLocator
will be queried for each element from the
document.
Creating a Custom Link Target Reference Finder
ro.sync.ecss.extensions.api.link.ElementLocatorProvider
interface. As an alternative, your class could extend ro.sync.ecss.extensions.commons.DefaultElementLocatorProvider
,
the default implementation.ro.sync.ecss.extensions.commons.DefaultElementLocatorProvider
,
ro.sync.ecss.extensions.commons.IDElementLocator
or ro.sync.ecss.extensions.commons.XPointerElementLocator
can be
found in the oxygen-sample-framework project.