com.sun.appserv.management.util.jmx.stringifier
Class ObjectNameStringifier
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT
public static final ObjectNameStringifier DEFAULT
ObjectNameStringifier
public ObjectNameStringifier()
ObjectNameStringifier
public ObjectNameStringifier(List<String> props)
ObjectNameStringifier
public ObjectNameStringifier(String[] props)
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)
Submit a bug or feature Copyright 2006 Sun Microsystems, Inc. All rights reserved.