{
public String getColumnText( Object obj, int index )
{
if ( obj instanceof AttributeValueProviderRelation )
{
AttributeValueProviderRelation relation = ( AttributeValueProviderRelation ) obj;
if ( index == 0 )
{
return relation.getAttributeNumericOidOrType();
}
else if ( index == 1 )
{
if ( relation.getAttributeNumericOidOrType() != null )
{
if ( attributeTypes2AtdMap.containsKey( relation.getAttributeNumericOidOrType() ) )
{
AttributeTypeDescription atd = ( AttributeTypeDescription ) attributeTypes2AtdMap
.get( relation.getAttributeNumericOidOrType() );
String s = atd.getNumericOID();
for ( int i = 0; i < atd.getNames().length; i++ )
{
if ( !relation.getAttributeNumericOidOrType().equals( atd.getNames()[i] ) )
{
s += ", " + atd.getNames()[i];
}
}
return s;
}
else if ( attributeOid2AtdMap.containsKey( relation.getAttributeNumericOidOrType() ) )
{
AttributeTypeDescription atd = ( AttributeTypeDescription ) attributeOid2AtdMap
.get( relation.getAttributeNumericOidOrType() );
return atd.toString();
}
}
}
else if ( index == 2 )
{
ValueEditorExtension vp = class2ValueEditorProxyMap.get( relation.getValueProviderClassname() );
return vp != null ? vp.name : null;
}
}
return null;
}