public static String getESIDependencies ( Enumeration e1 , Enumeration e2 ) { if ( ( e1 == null || ! e1 . hasMoreElements ( ) ) ) if ( ( e2 == null || ! e2 . hasMoreElements ( ) ) ) return null ; StringBuffer sb = new StringBuffer ( "dependencies=\"" ) ; if ( e1 != null ) while ( e1 . hasMoreElements ( ) ) { sb . append ( " " ) ; sb . append ( ( String ) e1 . nextElement ( ) ) ; } if ( e2 != null ) while ( e2 . hasMoreElements ( ) ) { sb . append ( " " ) ; sb . append ( ( String ) e2 . nextElement ( ) ) ; } //don't append a trailing double quote, since we have to add the cache id later return sb . toString ( ) ; }
expects an enumeration of data ids and an enumeration of templates