private IAtomType getAtomType ( String ID ) throws NoSuchAtomTypeException { IAtomType at = null ; for ( int i = 0 ; i < atomTypes . size ( ) ; i ++ ) { at = ( IAtomType ) atomTypes . get ( i ) ; if ( at . getAtomTypeName ( ) . equals ( ID ) ) { return at ; } } throw new NoSuchAtomTypeException ( "AtomType " + ID + " could not be found" ) ; }
Find the atomType for a id