2 # = lib/evo/taxonomy/taxonomy.rb - Taxonomy class
4 # Copyright:: Copyright (C) 2006-2007 Christian M. Zmasek
5 # License:: GNU Lesser General Public License (LGPL)
7 # $Id: taxonomy.rb,v 1.2 2009/01/03 00:19:08 cmzmasek Exp $
15 def initialize( name, id = nil, id_source = nil )
16 @name = String.new( name.strip() )
20 @id = String.new( id.strip() )
22 if ( id_source == nil )
23 @id_source = String.new()
25 @id_source = String.new( id_source.strip() )
33 return ( ( get_name == taxonomy.get_name ) &&
34 ( get_id == taxonomy.get_id ) &&
35 ( get_id_source == taxonomy.get_id_source ) )
40 return Taxonomy.new( get_name, get_id, get_id_source )
56 if Util.is_string_empty?( get_id )
59 "[" + get_id + "] " + @name