| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | |
| private static class | TransliteratorRegistry.IDEnumeration
An internal class that adapts an enumeration over CaseInsensitiveStrings to an enumeration over Strings. |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | TransliteratorRegistry.Spec
A Spec is a string specifying either a source or a target. |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private final Set | availableIDs
Vector of public full IDs (CaseInsensitiveString objects). |
| private static final boolean | |
| private static final char | |
| private static final String | |
| private Map | registry
Dynamic registry mapping full IDs to Entry objects. |
| private Map | specDAG
DAG of visible IDs by spec. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Object[] | |
| private Object[] | |
| private Object[] | findInBundle(TransliteratorRegistry.
Attempt to find an entry in a single resource bundle. |
| private Object[] | findInDynamicStore(TransliteratorRegistry.
Attempt to find a source-target/variant in the dynamic registry store. |
| private Object[] | findInStaticStore(TransliteratorRegistry.
Attempt to find a source-target/variant in the static locale resource store. |
| public Transliterator | get(String ID, StringBuffer aliasReturn)
Given a simple ID (forward direction, no inline filter, not compound) attempt to instantiate it from the registry. |
| public Enumeration | Returns: AnEnumeration over String objectsReturns an enumeration over the programmatic names of visible registered transliterators. |
| public Enumeration | Returns: AnEnumeration over String objectsReturns an enumeration over all visible source names. |
| public Enumeration | Returns: AnEnumeration over String objectsReturns an enumeration over visible target names for the given source. |
| public Enumeration | Returns: AnEnumeration over String objectsReturns an enumeration over visible variant names for the given source and target. |
| private Transliterator | instantiateEntry(String ID, Object[] entryWrapper, StringBuffer aliasReturn)
Given an Entry object, instantiate it. |
| public void | put(String ID, Class<? extends Transliterator> transliteratorSubclass, boolean visible)
Register a class. |
| public void | put(String ID, Transliterator.
Register an ID and a factory function pointer. |
| public void | |
| public void | |
| public void | |
| private void | registerEntry(String source, String target, String variant, Object entry, boolean visible)
Convenience method. |
| private void | |
| private void | |
| private void | registerSTV(String source, String target, String variant)
Register a source-target/variant in the specDAG. |
| public void | |
| private void |
| ANY | back to summary |
|---|---|
| private static final String ANY | |
| availableIDs | back to summary |
|---|---|
| private final Set<CaseInsensitiveString> availableIDs Vector of public full IDs (CaseInsensitiveString objects). | |
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG | |
| LOCALE_SEP | back to summary |
|---|---|
| private static final char LOCALE_SEP | |
| NO_VARIANT | back to summary |
|---|---|
| private static final String NO_VARIANT | |
| registry | back to summary |
|---|---|
| private Map<CaseInsensitiveString, Object[]> registry Dynamic registry mapping full IDs to Entry objects. This contains both public and internal entities. The visibility is controlled by whether an entry is listed in availableIDs and specDAG or not. Keys are CaseInsensitiveString objects. Values are objects of class Class (subclass of Transliterator), RuleBasedTransliterator.Data, Transliterator.Factory, or one of the entry classes defined here (AliasEntry or ResourceEntry). | |
| specDAG | back to summary |
|---|---|
| private Map<CaseInsensitiveString, Map<CaseInsensitiveString, List<CaseInsensitiveString>>> specDAG DAG of visible IDs by spec. Hashtable: source => (Hashtable: target => (Vector: variant)) The Vector of variants is never empty. For a source-target with no variant, the special variant NO_VARIANT (the empty string) is stored in slot zero of the UVector. Keys are CaseInsensitiveString objects. Values are Hashtable of (CaseInsensitiveString -> Vector of CaseInsensitiveString) | |
| TransliteratorRegistry | back to summary |
|---|---|
| public TransliteratorRegistry() | |
| find | back to summary |
|---|---|
| private Object[] find(String ID) Convenience method. Calls 3-arg find(). | |
| find | back to summary |
|---|---|
| private Object[] find(String source, String target, String variant) Top-level find method. Attempt to find a source-target/variant in either the dynamic or the static (locale resource) store. Perform fallback. Lookup sequence for ss_SS_SSS-tt_TT_TTT/v: ss_SS_SSS-tt_TT_TTT/v -- in hashtable ss_SS_SSS-tt_TT_TTT/v -- in ss_SS_SSS (no fallback) repeat with t = tt_TT_TTT, tt_TT, tt, and tscript ss_SS_SSS-t/* ss_SS-t/* ss-t/* sscript-t/* Here * matches the first variant listed. Caller does NOT own returned object. Return 0 on failure. | |
| findInBundle | back to summary |
|---|---|
| private Object[] findInBundle(TransliteratorRegistry. Attempt to find an entry in a single resource bundle. This is a one-sided lookup. findInStaticStore() performs up to two such lookups, one for the source, and one for the target. Do not perform fallback. Return 0 on failure. On success, create a new Entry object, populate it, and return it. The caller owns the returned object. | |
| findInDynamicStore | back to summary |
|---|---|
| private Object[] findInDynamicStore(TransliteratorRegistry. Attempt to find a source-target/variant in the dynamic registry store. Return 0 on failure. | |
| findInStaticStore | back to summary |
|---|---|
| private Object[] findInStaticStore(TransliteratorRegistry. Attempt to find a source-target/variant in the static locale resource store. Do not perform fallback. Return 0 on failure. On success, create a new entry object, register it in the dynamic store, and return a pointer to it, but do not make it public -- just because someone requested something, we do not expand the available ID list (or spec DAG). | |
| get | back to summary |
|---|---|
| public Transliterator get(String ID, StringBuffer aliasReturn) Given a simple ID (forward direction, no inline filter, not compound) attempt to instantiate it from the registry. Return 0 on failure. Return a non-empty aliasReturn value if the ID points to an alias. We cannot instantiate it ourselves because the alias may contain filters or compounds, which we do not understand. Caller should make aliasReturn empty before calling. | |
| getAvailableIDs | back to summary |
|---|---|
| public Enumeration Returns an enumeration over the programmatic names of visible registered transliterators.
| |
| getAvailableSources | back to summary |
|---|---|
| public Enumeration Returns an enumeration over all visible source names.
| |
| getAvailableTargets | back to summary |
|---|---|
| public Enumeration Returns an enumeration over visible target names for the given source.
| |
| getAvailableVariants | back to summary |
|---|---|
| public Enumeration Returns an enumeration over visible variant names for the given source and target.
| |
| instantiateEntry | back to summary |
|---|---|
| private Transliterator instantiateEntry(String ID, Object[] entryWrapper, StringBuffer aliasReturn) Given an Entry object, instantiate it. Caller owns result. Return 0 on failure. Return a non-empty aliasReturn value if the ID points to an alias. We cannot instantiate it ourselves because the alias may contain filters or compounds, which we do not understand. Caller should make aliasReturn empty before calling. The entry object is assumed to reside in the dynamic store. It may be modified.
| |
| put | back to summary |
|---|---|
| public void put(String ID, Class<? extends Transliterator> transliteratorSubclass, boolean visible) Register a class. This adds an entry to the dynamic store, or replaces an existing entry. Any entry in the underlying static locale resource store is masked. | |
| put | back to summary |
|---|---|
| public void put(String ID, Transliterator. Register an ID and a factory function pointer. This adds an entry to the dynamic store, or replaces an existing entry. Any entry in the underlying static locale resource store is masked. | |
| put | back to summary |
|---|---|
| public void put(String ID, String resourceName, int dir, boolean visible) Register an ID and a resource name. This adds an entry to the dynamic store, or replaces an existing entry. Any entry in the underlying static locale resource store is masked. | |
| put | back to summary |
|---|---|
| public void put(String ID, String alias, boolean visible) Register an ID and an alias ID. This adds an entry to the dynamic store, or replaces an existing entry. Any entry in the underlying static locale resource store is masked. | |
| put | back to summary |
|---|---|
| public void put(String ID, Transliterator trans, boolean visible) Register an ID and a Transliterator object. This adds an entry to the dynamic store, or replaces an existing entry. Any entry in the underlying static locale resource store is masked. | |
| registerEntry | back to summary |
|---|---|
| private void registerEntry(String source, String target, String variant, Object entry, boolean visible) Convenience method. Calls 6-arg registerEntry(). | |
| registerEntry | back to summary |
|---|---|
| private void registerEntry(String ID, Object entry, boolean visible) Convenience method. Calls 6-arg registerEntry(). | |
| registerEntry | back to summary |
|---|---|
| private void registerEntry(String ID, String source, String target, String variant, Object entry, boolean visible) Register an entry object (adopted) with the given ID, source, target, and variant strings. | |
| registerSTV | back to summary |
|---|---|
| private void registerSTV(String source, String target, String variant) Register a source-target/variant in the specDAG. Variant may be empty, but source and target must not be. If variant is empty then the special variant NO_VARIANT is stored in slot zero of the UVector of variants. | |
| remove | back to summary |
|---|---|
| public void remove(String ID) Unregister an ID. This removes an entry from the dynamic store if there is one. The static locale resource store is unaffected. | |
| removeSTV | back to summary |
|---|---|
| private void removeSTV(String source, String target, String variant) Remove a source-target/variant from the specDAG. | |
| Access | Constructor and Description |
|---|---|
| public |
| alias | back to summary |
|---|---|
| public String alias | |
| AliasEntry | back to summary |
|---|---|
| public AliasEntry(String a) | |
| Modifier and Type | Field and Description |
|---|---|
| private UnicodeSet | |
| private List | |
| private String | |
| private List |
| Access | Constructor and Description |
|---|---|
| public | CompoundRBTEntry(String theID, List<String> theIDBlockVector, List<RuleBasedTransliterator.
|
| Modifier and Type | Method and Description |
|---|---|
| public Transliterator |
| compoundFilter | back to summary |
|---|---|
| private UnicodeSet compoundFilter | |
| dataVector | back to summary |
|---|---|
| private List<RuleBasedTransliterator. | |
| ID | back to summary |
|---|---|
| private String ID | |
| idBlockVector | back to summary |
|---|---|
| private List<String> idBlockVector | |
| CompoundRBTEntry | back to summary |
|---|---|
| public CompoundRBTEntry(String theID, List<String> theIDBlockVector, List<RuleBasedTransliterator. | |
| getInstance | back to summary |
|---|---|
| public Transliterator getInstance() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Enumeration |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | hasMoreElements()
Implements java. |
| public String | nextElement()
Implements java. |
| en | back to summary |
|---|---|
| pack-priv Enumeration<CaseInsensitiveString> en | |
| IDEnumeration | back to summary |
|---|---|
| public IDEnumeration(Enumeration<CaseInsensitiveString> e) | |
| hasMoreElements | back to summary |
|---|---|
| public boolean hasMoreElements() Implements java. Doc from java. Tests if this enumeration contains more elements.
| |
| nextElement | back to summary |
|---|---|
| public String nextElement() Implements java. Doc from java. Returns the next element of this enumeration if this enumeration object has at least one more element to provide. | |
| Access | Constructor and Description |
|---|---|
| public |
| LocaleEntry | back to summary |
|---|---|
| public LocaleEntry(String r, int d) | |
| Access | Constructor and Description |
|---|---|
| public |
| direction | back to summary |
|---|---|
| public int direction | |
| resource | back to summary |
|---|---|
| public String resource | |
| ResourceEntry | back to summary |
|---|---|
| public ResourceEntry(String n, int d) | |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private String | |
| private ICUResourceBundle | |
| private String | |
| private String | |
| private String |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public ResourceBundle | |
| public String | |
| public boolean | |
| public boolean | |
| public String | |
| public void | |
| private void |
| isNextLocale | back to summary |
|---|---|
| private boolean isNextLocale | |
| isSpecLocale | back to summary |
|---|---|
| private boolean isSpecLocale | |
| nextSpec | back to summary |
|---|---|
| private String nextSpec | |
| res | back to summary |
|---|---|
| private ICUResourceBundle res | |
| scriptName | back to summary |
|---|---|
| private String scriptName | |
| spec | back to summary |
|---|---|
| private String spec | |
| top | back to summary |
|---|---|
| private String top | |
| Spec | back to summary |
|---|---|
| public Spec(String theSpec) | |
| get | back to summary |
|---|---|
| public String get() | |
| getBundle | back to summary |
|---|---|
| public ResourceBundle getBundle() Return the ResourceBundle for this spec, at the current level of iteration. The level of iteration goes from aa_BB_CCC to aa_BB to aa. If the bundle does not correspond to the current level of iteration, return null. If isLocale() is false, always return null. | |
| getTop | back to summary |
|---|---|
| public String getTop() | |
| hasFallback | back to summary |
|---|---|
| public boolean hasFallback() | |
| isLocale | back to summary |
|---|---|
| public boolean isLocale() | |
| next | back to summary |
|---|---|
| public String next() | |
| reset | back to summary |
|---|---|
| public void reset() | |
| setupNext | back to summary |
|---|---|
| private void setupNext() | |