public MisplacedClassProcessor getProcessorForName ( String name ) { if ( name == null ) { return getDefaultProcessor ( ) ; } switch ( Strategy . valueOf ( name . toUpperCase ( ) ) ) { case FATAL : return new FatalMisplacedClassProcessor ( ) ; case MOVE : return new MoveMisplacedClassProcessor ( ) ; case OMIT : return new OmitMisplacedClassProcessor ( ) ; case SKIP : return new SkipMisplacedClassProcessor ( ) ; } throw new IllegalArgumentException ( "Unrecognized strategy name \"" + name + "\"." ) ; }
Creates a MisplacedClassProcessor according for the given strategy name .