return value;
}
private OrganisationInformation readOrganisationInformation( String prefix, Registry registry )
{
OrganisationInformation value = new OrganisationInformation();
//String name = registry.getString( prefix + "name", value.getName() );
List<String> nameList = registry.getList( prefix + "name" );
String name = value.getName();
if (nameList != null && !nameList.isEmpty() )
{
StringBuilder sb = new StringBuilder( );
for (int i = 0,size = nameList.size();i<size;i++)
{
sb.append( nameList.get( i ) );
if (i<size - 1)
{
sb.append( ',' );
}
}
name = sb.toString();
}
value.setName( name );
//String url = registry.getString( prefix + "url", value.getUrl() );
List<String> urlList = registry.getList( prefix + "url" );
String url = value.getUrl();
if (urlList != null && !urlList.isEmpty() )
{
StringBuilder sb = new StringBuilder( );
for (int i = 0,size = urlList.size();i<size;i++)
{
sb.append( urlList.get( i ) );
if (i<size - 1)
{
sb.append( ',' );
}
}
url = sb.toString();
}
value.setUrl( url );
//String logoLocation = registry.getString( prefix + "logoLocation", value.getLogoLocation() );
List<String> logoLocationList = registry.getList( prefix + "logoLocation" );
String logoLocation = value.getLogoLocation();
if (logoLocationList != null && !logoLocationList.isEmpty() )
{
StringBuilder sb = new StringBuilder( );
for (int i = 0,size = logoLocationList.size();i<size;i++)
{
sb.append( logoLocationList.get( i ) );
if (i<size - 1)
{
sb.append( ',' );
}
}
logoLocation = sb.toString();
}
value.setLogoLocation( logoLocation );
return value;
}