@Test public void getTermReturnsNullWhenIdIsEmptySpace() { Assert.assertNull(this.component.getTerm(StringUtils.SPACE)); }
@Override public VocabularyTerm getTerm(String symbol) { if (StringUtils.isBlank(symbol)) { return null; } final String id = (StringUtils.contains(symbol, SEPARATOR) && !StringUtils.isBlank(StringUtils.substringAfter(symbol, SEPARATOR))) ? StringUtils.substringAfter(symbol, SEPARATOR) : symbol; return requestTerm(ClientUtils.escapeQueryChars(id)); }
GeneNomenclature extends AbstractCSVSolrVocabulary { @Override public VocabularyTerm getTerm(String symbol) { if (StringUtils.isBlank(symbol)) { return null; } final String id = (StringUtils.contains(symbol, SEPARATOR) && !StringUtils.isBlank(StringUtils.substringAfter(symbol, SEPARATOR))) ? StringUtils.substringAfter(symbol, SEPARATOR) : symbol; return requestTerm(ClientUtils.escapeQueryChars(id)); } }
GeneNomenclature extends AbstractCSVSolrVocabulary { @Override public VocabularyTerm getTerm(String symbol) { if (StringUtils.isBlank(symbol)) { return null; } final String id = (StringUtils.contains(symbol, SEPARATOR) && !StringUtils.isBlank(StringUtils.substringAfter(symbol, SEPARATOR))) ? StringUtils.substringAfter(symbol, SEPARATOR) : symbol; return requestTerm(ClientUtils.escapeQueryChars(id)); }  }
GeneNomenclature extends AbstractCSVSolrVocabulary { @Override public VocabularyTerm getTerm(String symbol) { if (StringUtils.isBlank(symbol)) { return null; } final String id = (StringUtils.contains(symbol, SEPARATOR) && !StringUtils.isBlank(StringUtils.substringAfter(symbol, SEPARATOR))) ? StringUtils.substringAfter(symbol, SEPARATOR) : symbol; return requestTerm(ClientUtils.escapeQueryChars(id)); }  @Override String getDefaultSourceLocation(); @Override String getIdentifier(); @Override String getName(); @Override Collection<String> getSupportedCategories(); @Override Set<String> getAliases(); @Override String getWebsite(); @Override String getCitation(); @Override VocabularyTerm getTerm(String symbol); @Override List<VocabularyTerm> search(String input, int maxResults, String sort, String customFilter); @Override Set<VocabularyTerm> getTerms(Collection<String> symbols); @Override long getDistance(String fromTermId, String toTermId); @Override long getDistance(VocabularyTerm fromTerm, VocabularyTerm toTerm); }
GeneNomenclature extends AbstractCSVSolrVocabulary { @Override public VocabularyTerm getTerm(String symbol) { if (StringUtils.isBlank(symbol)) { return null; } final String id = (StringUtils.contains(symbol, SEPARATOR) && !StringUtils.isBlank(StringUtils.substringAfter(symbol, SEPARATOR))) ? StringUtils.substringAfter(symbol, SEPARATOR) : symbol; return requestTerm(ClientUtils.escapeQueryChars(id)); }  @Override String getDefaultSourceLocation(); @Override String getIdentifier(); @Override String getName(); @Override Collection<String> getSupportedCategories(); @Override Set<String> getAliases(); @Override String getWebsite(); @Override String getCitation(); @Override VocabularyTerm getTerm(String symbol); @Override List<VocabularyTerm> search(String input, int maxResults, String sort, String customFilter); @Override Set<VocabularyTerm> getTerms(Collection<String> symbols); @Override long getDistance(String fromTermId, String toTermId); @Override long getDistance(VocabularyTerm fromTerm, VocabularyTerm toTerm);  }