FileDocCategorySizeDatePackage
MBeanAttributeInfoStringifier.javaAPI DocGlassfish v2 API3227Fri May 04 22:31:04 BST 2007com.sun.appserv.management.util.jmx.stringifier

MBeanAttributeInfoStringifier

public class MBeanAttributeInfoStringifier extends MBeanFeatureInfoStringifier implements com.sun.appserv.management.util.stringifier.Stringifier

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

	
		
	
	
		super();
	
public MBeanAttributeInfoStringifier(MBeanFeatureInfoStringifierOptions options)

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

		MBeanAttributeInfo	attr	= (MBeanAttributeInfo)o;
		String	result	= attr.getName() + ":";
		if ( attr.isReadable() )
			result	= result + "r";
		if ( attr.isWritable() )
			result	= result + "w";
		result	= result + mOptions.mArrayDelimiter + getPresentationTypeString( attr.getType() );
		
		if ( mOptions.mIncludeDescription )
		{
			result	= result + ",\"" + attr.getDescription() + "\"";
		}
		
		return( result );