static public List < String > breakupConventionNames ( String convAttValue ) { List < String > names = new ArrayList <> ( ) ; if ( ( convAttValue . indexOf ( ' ' ) > 0 ) || ( convAttValue . indexOf ( ' ' ) > 0 ) ) { StringTokenizer stoke = new StringTokenizer ( convAttValue , ",;" ) ; while ( stoke . hasMoreTokens ( ) ) { String name = stoke . nextToken ( ) ; names . add ( name . trim ( ) ) ; } } else if ( ( convAttValue . indexOf ( ' ' ) > 0 ) ) { StringTokenizer stoke = new StringTokenizer ( convAttValue , "/" ) ; while ( stoke . hasMoreTokens ( ) ) { String name = stoke . nextToken ( ) ; names . add ( name . trim ( ) ) ; } } else { StringTokenizer stoke = new StringTokenizer ( convAttValue , " " ) ; while ( stoke . hasMoreTokens ( ) ) { String name = stoke . nextToken ( ) ; names . add ( name . trim ( ) ) ; } } return names ; }
Breakup list of Convention names in the Convention attribute in CF compliant way .