public class GrammaticalLabelSetFileCacheLoader extends GrammaticalLabelSetLoader
| Constructor and Description |
|---|
GrammaticalLabelSetFileCacheLoader(LanguageLabelSetDescriptor.GrammaticalLabelSetDescriptor desc,
GrammaticalLabelSetProvider parent)
Construct a FileCacheLoader that will cache the label set values
in the
|
| Modifier and Type | Method and Description |
|---|---|
GrammaticalLabelSetImpl |
compute(LanguageLabelSetDescriptor.GrammaticalLabelSetDescriptor desc) |
static URL[] |
getAllUddXmlFiles() |
protected Collection<URL> |
getFilesForModifiedDate() |
long |
getLastModifiedDate(Collection<HumanLanguage> languages)
Returns the most recent last modified date for the given language and other metadata files such as the udd.
|
void |
resetMap()
Used only for debugging purposes.
|
getBaseDesc, getSeedKeyMap, getSet, getSetByDescriptor, init, initEnglishpublic GrammaticalLabelSetFileCacheLoader(LanguageLabelSetDescriptor.GrammaticalLabelSetDescriptor desc, GrammaticalLabelSetProvider parent)
desc - the descriptor for the location of the label setparent - the optional parent provider for fallback labelspublic GrammaticalLabelSetImpl compute(LanguageLabelSetDescriptor.GrammaticalLabelSetDescriptor desc) throws IOException
IOExceptionpublic static URL[] getAllUddXmlFiles() throws IOException
IOExceptionprotected Collection<URL> getFilesForModifiedDate()
public long getLastModifiedDate(Collection<HumanLanguage> languages) throws URISyntaxException, IOException
URISyntaxExceptionIOExceptionpublic void resetMap()
resetMap in interface LabelSetProviderresetMap in class GrammaticalLabelSetLoaderCopyright (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.