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

AttributeChangeNotificationStringifier

public class AttributeChangeNotificationStringifier extends NotificationStringifier implements Stringifier

Fields Summary
public static AttributeChangeNotificationStringifier
DEFAULT
Constructors Summary
public AttributeChangeNotificationStringifier()

	
		
	 
	
		super();
	
public AttributeChangeNotificationStringifier(Options options)

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

		final AttributeChangeNotification	notif	= (AttributeChangeNotification)o;
		
		final StringBuffer	b	= super._stringify( notif );
		append( b, "" );
		
		final String	attrName	= notif.getAttributeName();
		final String	oldValue	= SmartStringifier.toString( notif.getOldValue() );
		final String	newValue	= SmartStringifier.toString( notif.getNewValue() );
		
		final String msg	= attrName + ": " + oldValue + " => " + newValue;
		b.append( msg );
		
		return( b.toString() );