public static IActionType < ? > getType ( String script ) { for ( IActionType < ? > actionType : instance ) { if ( actionType . matches ( script ) ) { return actionType ; } } throw new IllegalArgumentException ( "Script type was not recognized: " + script ) ; }
Returns the action type given a script .