public int getFieldTemplateIndex ( final String name ) { for ( int index = 0 ; index < this . fields . length ; index ++ ) { if ( this . fields [ index ] . getName ( ) . equals ( name ) ) { return index ; } } return - 1 ; }
Look up the pattern index of the slot