public static String toLine(Event event) {
    StringBuffer sb = new StringBuffer();
    sb.append(event.getOutcome());
    String[] context = event.getContext();
    for (int ci=0,cl=context.length;ci<cl;ci++) {
      sb.append(" "+context[ci]);
    }
    sb.append(System.getProperty("line.separator"));
    return sb.toString();
  }
public static String toLine ( Event event ) { StringBuffer sb = new StringBuffer ( ) ; sb . append ( event . getOutcome ( ) ) ; String [ ] context = event . getContext ( ) ; for ( int ci = 0 , cl = context . length ; ci < cl ; ci ++ ) { sb . append ( " " + context [ ci ] ) ; } sb . append ( System . getProperty ( "line.separator" ) ) ; return sb . toString ( ) ; }
Generates a string representing the specified event.
@param event The event for which a string representation is needed.
@return A string representing the specified event.