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

MBeanAttributeInfoStringifier

public class MBeanAttributeInfoStringifier extends MBeanFeatureInfoStringifier implements 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 );