FileDocCategorySizeDatePackage
MBeanNotificationInfoStringifier.javaAPI DocGlassfish v2 API3101Fri May 04 22:25:02 BST 2007com.sun.cli.util.stringifier

MBeanNotificationInfoStringifier

public class MBeanNotificationInfoStringifier extends MBeanFeatureInfoStringifier implements Stringifier

Fields Summary
public static final MBeanNotificationInfoStringifier
DEFAULT
Constructors Summary
public MBeanNotificationInfoStringifier()


		
	  
	
		super( );
	
public MBeanNotificationInfoStringifier(MBeanFeatureInfoStringifierOptions options)

		super( options );
	
Methods Summary
public java.lang.Stringstringify(java.lang.Object o)

		final MBeanNotificationInfo	notif	= (MBeanNotificationInfo)o;
		
		String	result	= notif.getName() + ":";
		
		final String []	notifTypes	= notif.getNotifTypes();
		result	= result + ArrayStringifier.stringify( notifTypes, mOptions.mArrayDelimiter );
		
		if ( mOptions.mIncludeDescription )
		{
			result	= result + ",\"" + notif.getDescription() + "\"";
		}
				
		
		return( result );