in modello-plugins/modello-db-keywords/src/main/java/org/apache/archiva/redback/components/modello/db/SQLReservedWords.java [97:126]
public String getKeywordSourceString( String word )
{
if ( StringUtils.isEmpty( word ) )
{
// empty or null is not a keyword. ;-)
return null;
}
String key = word.trim().toUpperCase();
List<KeywordSource> sources = this.keywords.get( key );
if ( sources == null )
{
return null;
}
StringBuffer ret = new StringBuffer();
for ( Iterator<KeywordSource> it = sources.iterator(); it.hasNext(); )
{
KeywordSource source = it.next();
if ( ret.length() > 0 )
{
ret.append( ", " );
}
ret.append( source.getName() );
}
return ret.toString();
}