@Immutable public final class DefaultDictionarySpec extends Object implements DictionarySpec
Constructor and Description |
---|
DefaultDictionarySpec(Map<String,String> pairDictionaryNames,
Map<String,String> pairConceptFactoryNames,
Map<String,RareWordDictionary> dictionaries,
Map<String,ConceptFactory> conceptFactories,
TermConsumer termConsumer) |
Modifier and Type | Method and Description |
---|---|
Collection<ConceptFactory> |
getConceptFactories() |
ConceptFactory |
getConceptFactory(String pairName) |
TermConsumer |
getConsumer() |
Collection<RareWordDictionary> |
getDictionaries() |
RareWordDictionary |
getDictionary(String pairName) |
Collection<ConceptFactory> |
getPairedConceptFactories(String dictionaryName) |
Collection<RareWordDictionary> |
getPairedDictionaries(String conceptFactoryName) |
Collection<String> |
getPairNames() |
public DefaultDictionarySpec(Map<String,String> pairDictionaryNames, Map<String,String> pairConceptFactoryNames, Map<String,RareWordDictionary> dictionaries, Map<String,ConceptFactory> conceptFactories, TermConsumer termConsumer)
termConsumer
- the consumer to add terms to the Caspublic Collection<String> getPairNames()
getPairNames
in interface DictionarySpec
public RareWordDictionary getDictionary(String pairName)
getDictionary
in interface DictionarySpec
public ConceptFactory getConceptFactory(String pairName)
getConceptFactory
in interface DictionarySpec
public Collection<RareWordDictionary> getPairedDictionaries(String conceptFactoryName)
getPairedDictionaries
in interface DictionarySpec
conceptFactoryName
- name of a used concept factorypublic Collection<ConceptFactory> getPairedConceptFactories(String dictionaryName)
getPairedConceptFactories
in interface DictionarySpec
dictionaryName
- name of a used dictionarypublic Collection<RareWordDictionary> getDictionaries()
getDictionaries
in interface DictionarySpec
public Collection<ConceptFactory> getConceptFactories()
getConceptFactories
in interface DictionarySpec
public TermConsumer getConsumer()
getConsumer
in interface DictionarySpec
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.