public static String roleValueToString(List<ObjectName> roleValue) throws IllegalArgumentException {
  if (roleValue == null) {
    String excMsg="Invalid parameter";
    throw new IllegalArgumentException(excMsg);
  }
  StringBuilder result=new StringBuilder();
  for (  ObjectName currObjName : roleValue) {
    if (result.length() > 0)     result.append("\n");
    result.append(currObjName.toString());
  }
  return result.toString();
}

public static String roleValueToString ( List < ObjectName > roleValue ) throws IllegalArgumentException { if ( roleValue == null ) { String excMsg = "Invalid parameter" ; throw new IllegalArgumentException ( excMsg ) ; } StringBuilder result = new StringBuilder ( ) ; for ( ObjectName currObjName : roleValue ) { if ( result . length ( ) > 0 ) result . append ( "\n" ) ; result . append ( currObjName . toString ( ) ) ; } return result . toString ( ) ; }
returns a string for the given role value .
