Class ObjectNameStringifier
- java.lang.Object
-
- org.glassfish.admin.amx.util.jmx.stringifier.ObjectNameStringifier
-
- All Implemented Interfaces:
Stringifier
public final class ObjectNameStringifier extends Object implements Stringifier
Stringifier for anObjectName
which sorts the properties in the ObjectName for more consistent and readable output.
-
-
Field Summary
Fields Modifier and Type Field Description static ObjectNameStringifier
DEFAULT
-
Constructor Summary
Constructors Constructor Description ObjectNameStringifier()
ObjectNameStringifier(String[] props)
ObjectNameStringifier(List<String> props)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getOmitDomain()
List
getProps()
void
setOmitDomain(boolean omit)
void
setProps(List<String> props)
String
stringify(Object o)
Produce a String representation of an object.
-
-
-
Field Detail
-
DEFAULT
public static final ObjectNameStringifier DEFAULT
-
-
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 interfaceStringifier
- Parameters:
o
- the Object for which a String should be produced
-
getProps
public List getProps()
-
getOmitDomain
public boolean getOmitDomain()
-
setOmitDomain
public void setOmitDomain(boolean omit)
-
-