public CollectionDescriptorDef getCollection ( String name ) { CollectionDescriptorDef collDef = null ; for ( Iterator it = _collections . iterator ( ) ; it . hasNext ( ) ; ) { collDef = ( CollectionDescriptorDef ) it . next ( ) ; if ( collDef . getName ( ) . equals ( name ) ) { return collDef ; } } return null ; }
Returns the collection definition of the given name if it exists .