public final class GrammaticalLabelSetFallbackImpl extends GrammaticalLabelSetImpl implements GrammaticalLabelSet.GrammaticalLabelSetComposite
| Modifier and Type | Class and Description |
|---|---|
static class |
GrammaticalLabelSetFallbackImpl.ImmutableMapUnion<K,V>
Implementation of a MapUnion where there is a immutable overlay and a "backing" map.
|
BasePropertyFile.MetaDataInfo, BasePropertyFile.Parser, BasePropertyFile.SubstitutionExceptionGrammaticalLabelSet.GrammaticalLabelSetCompositedata, lastModified, metaData, MISSING_LABEL| Constructor and Description |
|---|
GrammaticalLabelSetFallbackImpl(GrammaticalLabelSet main,
GrammaticalLabelSet fallback) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allowOtherGrammaticalForms() |
protected Object |
ask_inner_get(String section,
String param,
boolean throwSettingsSectionNotFoundException,
boolean doLogFallback) |
boolean |
containsParam(String sectionName,
String paramName) |
LanguageDictionary |
getDictionary() |
GrammaticalLabelSet |
getFallback() |
GrammaticalTerm |
getGrammaticalTerm(String section,
String param)
Test to see if the parameter contains *solely* a grammatical term, and if it does, return it, otherwise null
|
GrammaticalLabelSet |
getOverlay() |
Set<String> |
getPublicSectionNames() |
protected Object |
inner_get(String section,
String param,
boolean throwSettingsSectionNotFoundException)
We need to resolve aliases here in the fallback, because delegating it won't allow overrides in the "main" set
to be seen by the "fallback" set
|
protected Object |
writeReplace()
Use the serialization proxy for random noun forms (with a 7-ish byte cost)
If you have a map, using SerializeMap below is *much* better
|
get, get, getString, getString, getString, getString, getString, getString, getString, getStringThrow, getTestLabelSet, getTestLabelSet, resolveLabelRef, resolveLabelRef, setLabelSectionToFilenameget, getFilenameFromLabelSection, getLabelSectionToFilename, getPropertyFileData, labelExists, processMissingLabelattachSharedKeyMap, containsListParam, containsSection, doSubstitutions, doSubstitutions, entrySet, get, getBoolean, getBoolean, getCensoredString, getFloat, getFloat, getInt, getInt, getLastModified, getList, getList, getListConfigValues, getNumListEntryParams, getParams, getParams, getSection, isProductionMode, makeListEntryParam, outputValueXML, outputValueXMLCensored, outputXML, outputXML, put, remove, removeSection, sectionNames, setLastModified, stringToBoolean, substituteclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, get, getPropertyFileData, getString, getString, getString, getString, getStringcontainsSection, getLabelSectionToFilename, getLastModified, getParams, getParams, sectionNameslabelExistsget, getBoolean, getFloat, getInt, getList, getSection, getString, getStringThrowentrySet, get, getBoolean, getCensoredString, getFloat, getInt, getList, getStringpublic GrammaticalLabelSetFallbackImpl(GrammaticalLabelSet main, GrammaticalLabelSet fallback)
public GrammaticalLabelSet getOverlay()
getOverlay in interface GrammaticalLabelSet.GrammaticalLabelSetCompositepublic GrammaticalLabelSet getFallback()
getFallback in interface GrammaticalLabelSet.GrammaticalLabelSetCompositeprotected Object inner_get(String section, String param, boolean throwSettingsSectionNotFoundException) throws SettingsSectionNotFoundException
inner_get in class BasePropertyFileSettingsSectionNotFoundExceptionprotected Object ask_inner_get(String section, String param, boolean throwSettingsSectionNotFoundException, boolean doLogFallback) throws SettingsSectionNotFoundException
SettingsSectionNotFoundExceptionprotected boolean allowOtherGrammaticalForms()
allowOtherGrammaticalForms in class GrammaticalLabelSetImplpublic LanguageDictionary getDictionary()
getDictionary in interface GrammaticalLabelSetgetDictionary in class GrammaticalLabelSetImplpublic Set<String> getPublicSectionNames()
getPublicSectionNames in interface GrammaticalLabelSetgetPublicSectionNames in class GrammaticalLabelSetImplpublic boolean containsParam(String sectionName, String paramName)
containsParam in interface LabelSetcontainsParam in class BasePropertyFilesectionName - name of the sectionparamName - key for the parameterpublic GrammaticalTerm getGrammaticalTerm(String section, String param)
GrammaticalLabelSetgetGrammaticalTerm in interface GrammaticalLabelSetgetGrammaticalTerm in class GrammaticalLabelSetImplsection - the section to searchparam - the parameter to search.protected final Object writeReplace()
Copyright (c) 2016-2017, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE.txt file in the repository.