//for (int i = 0; list != null && i < list.size(); i++)
for (Enumeration e = cpa.getConditionalPermissionInfos(); e.hasMoreElements();)
{
hasPermissions = true;
//final ConditionalPermissionInfo info = (ConditionalPermissionInfo) list.get(i);
final ConditionalPermissionInfo info = (ConditionalPermissionInfo) e.nextElement();
pw.print(" "); //$NON-NLS-1$
pw.print(info.getName());
if (getAccessDecision != null)
{
try
{
final Object ad = getAccessDecision.invoke( info, ( Object[] ) null );
pw.print(" ("); //$NON-NLS-1$
pw.print(ad);
pw.print(")"); //$NON-NLS-1$
}
catch (Throwable t)
{
// ignore - will not print it
}
}
pw.println();
pw.println(" Conditions:");
print(info.getConditionInfos(), pw);
pw.println(" Permissions:");
print(info.getPermissionInfos(), pw);
}
if (!hasPermissions)
pw.println(" n/a");
}