public String toString(){
  StringBuilder result=new StringBuilder();
  result.append("role name: " + name + "; role value: ");
  for (Iterator<ObjectName> objNameIter=objectNameList.iterator(); objNameIter.hasNext(); ) {
    ObjectName currObjName=objNameIter.next();
    result.append(currObjName.toString());
    if (objNameIter.hasNext()) {
      result.append(", ");
    }
  }
  return result.toString();
}

public String toString ( ) { StringBuilder result = new StringBuilder ( ) ; result . append ( "role name: " + name + "; role value: " ) ; for ( Iterator < ObjectName > objNameIter = objectNameList . iterator ( ) ; objNameIter . hasNext ( ) ; ) { ObjectName currObjName = objNameIter . next ( ) ; result . append ( currObjName . toString ( ) ) ; if ( objNameIter . hasNext ( ) ) { result . append ( ", " ) ; } } return result . toString ( ) ; }
returns a string describing the role .
