public class BrailleTranslatorRegistry extends TransformProvider.util.Memoize<BrailleTranslator> implements BrailleTranslatorProvider<BrailleTranslator>
TransformProvider.util
Memoizing.util
| Constructor and Description |
|---|
BrailleTranslatorRegistry() |
| Modifier and Type | Method and Description |
|---|---|
Iterable<BrailleTranslator> |
_get(Query q) |
protected BrailleTranslatorRegistry |
_withContext(org.slf4j.Logger context)
Create a new
TransformProvider with the given context that is also memoizing
and is based on the same underlying caches. |
void |
addProvider(BrailleTranslatorProvider p) |
void |
bindHyphenatorRegistry(HyphenatorRegistry registry) |
Iterable<BrailleTranslator> |
get(Query query,
String style,
URI baseURI,
boolean forceMainTranslator)
Select
BrailleTranslators based on a query and a CSS style sheet possibly containing
@text-transform rules. |
Iterable<BrailleTranslator> |
getWithHyphenator(Query query)
Select
BrailleTranslators with Hyphenator based on a single query. |
Iterable<BrailleTranslator> |
getWithHyphenator(Query query,
String style,
URI baseURI,
boolean forceMainTranslator)
Select
BrailleTranslators with Hyphenator based on a single query and a CSS
style sheet possibly containing @text-transform and @hyphenation-resource
rules. |
String |
toString() |
BrailleTranslatorRegistry |
withContext(org.slf4j.Logger context) |
get, skip
_apply
apply, invalidateCache
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
invalidateCache
public void addProvider(BrailleTranslatorProvider p) throws UnsupportedOperationException
UnsupportedOperationExceptionpublic Iterable<BrailleTranslator> _get(Query q)
_get in class Provider.util.Memoize<Query,BrailleTranslator>
public BrailleTranslatorRegistry withContext(org.slf4j.Logger context)
withContext in interface Contextual<org.slf4j.Logger,TransformProvider<BrailleTranslator>>
withContext in class TransformProvider.util.Memoize<BrailleTranslator>
protected BrailleTranslatorRegistry _withContext(org.slf4j.Logger context)
TransformProvider.util.MemoizeTransformProvider with the given context that is also memoizing
and is based on the same underlying caches._withContext in class TransformProvider.util.Memoize<BrailleTranslator>
public void bindHyphenatorRegistry(HyphenatorRegistry registry) throws UnsupportedOperationException
UnsupportedOperationExceptionpublic Iterable<BrailleTranslator> getWithHyphenator(Query query)
BrailleTranslators with Hyphenator based on a single query.
Only the hyphenator and document-locale features contribute to the hyphenator
selection.
Like #get(Query), returned objects are selectable based on their identifier.public Iterable<BrailleTranslator> get(Query query, String style, URI baseURI, boolean forceMainTranslator)
BrailleTranslators based on a query and a CSS style sheet possibly containing
@text-transform rules.
Contrary to TransformProvider.util.Memoize.get(Query), this method is not memoized, and the returned objects may
not be selectable based on their identifier.baseURI - Base URI for resolving relative paths in CSS against.forceMainTranslator - if true, the translator defined in query is used
even if a default translator has been defined in CSS.public Iterable<BrailleTranslator> getWithHyphenator(Query query, String style, URI baseURI, boolean forceMainTranslator)
BrailleTranslators with Hyphenator based on a single query and a CSS
style sheet possibly containing @text-transform and @hyphenation-resource
rules.
Contrary to TransformProvider.util.Memoize.get(Query) and similar to get(Query, String, URI, boolean),
this method is not memoized, and the returned objects may not be selectable based on their
identifier.Copyright © 2010–2026 The DAISY Consortium. All rights reserved.