public ClassNamingScheme create(final String namingScheme, final String namingPattern)
                    throws MojoExecutionException {

        if (namingScheme.equals("simple")) {
            return new PatternNamingScheme("Parallel{c}IT", counter, featureFileNamingScheme);
        } else if (namingScheme.equals("feature-title")) {
            return new PatternNamingScheme("{f}{c}IT", counter, featureFileNamingScheme);
            // return new FeatureFileClassNamingScheme(counter);
        } else if (namingScheme.equals("pattern")) {

            if (namingPattern == null) {
                throw new MojoExecutionException("namingPattern tag is required");
            }

            return new PatternNamingScheme(namingPattern, counter, featureFileNamingScheme);
        } else {
            throw new MojoExecutionException("Error in configuration ; accepted value for tag "
                            + "'namingScheme' are 'simple' or 'feature-title' or 'pattern'");
        }

    }
public ClassNamingScheme create ( final String namingScheme , final String namingPattern ) throws MojoExecutionException { if ( namingScheme . equals ( "simple" ) ) { return new PatternNamingScheme ( "Parallel{c}IT" , counter , featureFileNamingScheme ) ; } else if ( namingScheme . equals ( "feature-title" ) ) { return new PatternNamingScheme ( "{f}{c}IT" , counter , featureFileNamingScheme ) ; } else if ( namingScheme . equals ( "pattern" ) ) { if ( namingPattern == null ) { throw new MojoExecutionException ( "namingPattern tag is required" ) ; } return new PatternNamingScheme ( namingPattern , counter , featureFileNamingScheme ) ; } else { throw new MojoExecutionException ( "Error in configuration ; accepted value for tag " + "'namingScheme' are 'simple' or 'feature-title' or 'pattern'" ) ; } }
Create a {@link ClassNamingScheme} based on the given name.

@param namingScheme The naming scheme to use
@param namingPattern Only required if <code>pattern</code> naming scheme is used. The pattern to use when
generating the classname. See {@link PatternNamingScheme} for more details.