Java EE 5 SDK

com.sun.appserv.management.util.jmx.stringifier
Class ObjectNameStringifier

java.lang.Object
  extended by com.sun.appserv.management.util.jmx.stringifier.ObjectNameStringifier
All Implemented Interfaces:
Stringifier

public final class ObjectNameStringifier
extends Object
implements Stringifier

Stringifier for an ObjectName which sorts the properties in the ObjectName for more consistent and readable output.


Field Summary
static ObjectNameStringifier DEFAULT
           
 
Constructor Summary
ObjectNameStringifier()
           
ObjectNameStringifier(List<String> props)
           
ObjectNameStringifier(String[] props)
           
 
Method Summary
 boolean getOmitDomain()
           
 List getProps()
           
 void setOmitDomain(boolean omit)
           
 void setProps(List<String> props)
           
 String stringify(Object o)
          Produce a String representation of an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final ObjectNameStringifier DEFAULT
Constructor Detail

ObjectNameStringifier

public ObjectNameStringifier()

ObjectNameStringifier

public ObjectNameStringifier(List<String> props)

ObjectNameStringifier

public ObjectNameStringifier(String[] props)
Method Detail

stringify

public String stringify(Object o)
Description copied from interface: Stringifier
Produce a String representation of an object. The actual output has no other semantics; each Stringifier may choose to target a particular type of user.

The resulting String should be suitable for display to a user.

Specified by:
stringify in interface Stringifier
Parameters:
o - the Object for which a String should be produced

getProps

public List getProps()

setProps

public void setProps(List<String> props)

getOmitDomain

public boolean getOmitDomain()

setOmitDomain

public void setOmitDomain(boolean omit)

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.