@Test public void testHasValue() throws BaleenException { ListGazetteer gaz = new ListGazetteer(); gaz.init(null, config); assertTrue(gaz.hasValue("howdy")); assertTrue(gaz.hasValue("hej")); assertTrue(gaz.hasValue("HEJ")); assertFalse(gaz.hasValue("good morning")); gaz.destroy(); }
@Override @SuppressWarnings("unchecked") public void init(Resource connection, Map<String, Object> config) throws BaleenException { if (config.containsKey(CONFIG_TERM_SEPARATOR)) { termSeparator = config.get(CONFIG_TERM_SEPARATOR).toString(); } terms = ImmutableList.copyOf((Iterable<String>) config.get(CONFIG_TERMS)); super.init(connection, config); }
ListGazetteer extends AbstractMultiMapGazetteer<Integer> { @Override @SuppressWarnings("unchecked") public void init(Resource connection, Map<String, Object> config) throws BaleenException { if (config.containsKey(CONFIG_TERM_SEPARATOR)) { termSeparator = config.get(CONFIG_TERM_SEPARATOR).toString(); } terms = ImmutableList.copyOf((Iterable<String>) config.get(CONFIG_TERMS)); super.init(connection, config); } }
ListGazetteer extends AbstractMultiMapGazetteer<Integer> { @Override @SuppressWarnings("unchecked") public void init(Resource connection, Map<String, Object> config) throws BaleenException { if (config.containsKey(CONFIG_TERM_SEPARATOR)) { termSeparator = config.get(CONFIG_TERM_SEPARATOR).toString(); } terms = ImmutableList.copyOf((Iterable<String>) config.get(CONFIG_TERMS)); super.init(connection, config); }  }
ListGazetteer extends AbstractMultiMapGazetteer<Integer> { @Override @SuppressWarnings("unchecked") public void init(Resource connection, Map<String, Object> config) throws BaleenException { if (config.containsKey(CONFIG_TERM_SEPARATOR)) { termSeparator = config.get(CONFIG_TERM_SEPARATOR).toString(); } terms = ImmutableList.copyOf((Iterable<String>) config.get(CONFIG_TERMS)); super.init(connection, config); }  @Override @SuppressWarnings("unchecked") void init(Resource connection, Map<String, Object> config); @Override void reloadValues(); }
ListGazetteer extends AbstractMultiMapGazetteer<Integer> { @Override @SuppressWarnings("unchecked") public void init(Resource connection, Map<String, Object> config) throws BaleenException { if (config.containsKey(CONFIG_TERM_SEPARATOR)) { termSeparator = config.get(CONFIG_TERM_SEPARATOR).toString(); } terms = ImmutableList.copyOf((Iterable<String>) config.get(CONFIG_TERMS)); super.init(connection, config); }  @Override @SuppressWarnings("unchecked") void init(Resource connection, Map<String, Object> config); @Override void reloadValues(); static final String CONFIG_TERMS; static final String CONFIG_TERM_SEPARATOR; }