Parses a fragment selector string into an ISelector instance. The types of selectors that can be parsed depends on which selector parser implementations this factory was created with.
If the fragment selector format is unknown, an UnknownFragmentSelector instance is returned containing the fragment string.
The fragment selector to parse.
Additional refinement selectors if any.
Parses a serialized ISelectorData object into an ISelector instance.
Creates range selectors from the given startSelectors
and endSelectors
.
The selector which describes the inclusive starting point of the range. The most specific selector should be first.
The selectors which describes the exclusive end point of the range. The most specific selector should be first.
Get all FragmentSelectorParsers used in this SelectorFactory.
Get all SelectorDataParsers used in this SelectorFactory.
Generated using TypeDoc
Used for parsing different types of serialized selector data into Selector instances.
The SelectorFactory must be configured with SelectorDataParsers and FragmentSelectorParser in order to support different selector formats.
For example, to create a SelectorFactory that can parse EPUB CFI selectors, do the following
If you have a serialized Locator you can use a LocatorFactory to parse it. You can use ReaderPublication.getLocatorFactory() to get a pre-configured LocatorFactory and SelectorFactory for that publication type.