public AObject find ( String name ) { for ( int i = 0 ; i < nextid ; i ++ ) { if ( objects [ i ] . getName ( ) . equals ( name ) ) { return objects [ i ] ; } } return null ; }
Find an object by name . Can be very expensive for large catalogs since a name comparison is performed in sequence on the objects in the catalog until a match is found . Search is case sensitive .