1 23 24 29 30 package com.sun.appserv.management.util.jmx.stringifier; 31 32 import java.util.Iterator ; 33 34 import javax.management.Attribute ; 35 import javax.management.AttributeList ; 36 37 import com.sun.appserv.management.util.stringifier.Stringifier; 38 import com.sun.appserv.management.util.stringifier.IteratorStringifier; 39 40 public final class AttributeListStringifier implements Stringifier 41 { 42 final String mDelim; 43 44 public final static AttributeListStringifier DEFAULT = new AttributeListStringifier(); 45 46 public 47 AttributeListStringifier() 48 { 49 this( "\n" ); 50 } 51 52 public 53 AttributeListStringifier( String delim ) 54 { 55 mDelim = delim; 56 57 } 58 public String 59 stringify( Object o ) 60 { 61 final AttributeList attrList = (AttributeList )o; 62 final Iterator iter = attrList.iterator(); 63 64 return( IteratorStringifier.stringify( iter, mDelim ) ); 65 } 66 } 67 | Popular Tags |