* @return a sorted set of names
* @throws org.apache.directory.shared.ldap.model.exception.LdapException if oid does not exist
*/
public List<String> getNameSet( String oid ) throws LdapException
{
SchemaObject schemaObject = byOid.get( oid );
if ( null == schemaObject )
{
String msg = I18n.err( I18n.ERR_04288, oid );
LOG.error( msg );
throw new LdapException( msg );
}
List<String> names = schemaObject.getNames();
if ( IS_DEBUG )
{
LOG.debug( "looked up names '{}' for OID '{}'", ArrayUtils.toString( names ), oid );
}