public static int lookupShaper ( String name ) { if ( name == null ) { return NOWORDSHAPE ; } else if ( name . equalsIgnoreCase ( "dan1" ) ) { return WORDSHAPEDAN1 ; } else if ( name . equalsIgnoreCase ( "chris1" ) ) { return WORDSHAPECHRIS1 ; } else if ( name . equalsIgnoreCase ( "dan2" ) ) { return WORDSHAPEDAN2 ; } else if ( name . equalsIgnoreCase ( "dan2useLC" ) ) { return WORDSHAPEDAN2USELC ; } else if ( name . equalsIgnoreCase ( "dan2bio" ) ) { return WORDSHAPEDAN2BIO ; } else if ( name . equalsIgnoreCase ( "dan2bioUseLC" ) ) { return WORDSHAPEDAN2BIOUSELC ; } else if ( name . equalsIgnoreCase ( "jenny1" ) ) { return WORDSHAPEJENNY1 ; } else if ( name . equalsIgnoreCase ( "jenny1useLC" ) ) { return WORDSHAPEJENNY1USELC ; } else if ( name . equalsIgnoreCase ( "chris2" ) ) { return WORDSHAPECHRIS2 ; } else if ( name . equalsIgnoreCase ( "chris2useLC" ) ) { return WORDSHAPECHRIS2USELC ; } else if ( name . equalsIgnoreCase ( "chris3" ) ) { return WORDSHAPECHRIS3 ; } else if ( name . equalsIgnoreCase ( "chris3useLC" ) ) { return WORDSHAPECHRIS3USELC ; } else if ( name . equalsIgnoreCase ( "chris4" ) ) { return WORDSHAPECHRIS4 ; } else if ( name . equalsIgnoreCase ( "digits" ) ) { return WORDSHAPEDIGITS ; } else { return NOWORDSHAPE ; } }
Look up a shaper by a short String name .