|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.admin.util.jmx.AttributeListUtils
public class AttributeListUtils
A class that has some useful utility methods to deal with
| Method Summary | |
|---|---|
static Map |
asNameMap(AttributeList al)
Returns the given list as a map of attributes, keyed on the names of the attribute in the list. |
static boolean |
containsNamedAttribute(AttributeList al,
Attribute a)
Checks whether an attribute with the name same as that of the given attribute exists in this list. |
static boolean |
containsNamedAttribute(AttributeList al,
String name)
Checks whether this list contains a JMX Attribute with given name. |
static String |
dash2CamelCase(String dashed)
|
static String |
toJmx12Attribute(String name)
JMX 1.2 specification had a weird limitation that a Dynamic MBean may not have an attribute whose name is not a valid Java identifier . |
static String |
toString(AttributeList al)
Returns a String representation of an attribute list such that: Each attribute is a name and value separated by a ','. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static final boolean containsNamedAttribute(AttributeList al,
String name)
Attribute with given name. Note that
this method will return true if there is at least one attribute with given name.
al - an instance of AttributeListname - a String representing the name of the attribute. The name may not be null.
IllegalArgumentException - if the attribute list or name is null
public static final boolean containsNamedAttribute(AttributeList al,
Attribute a)
al - an instance of AttributeLista - an Attribute with a name and a value
IllegalArgumentException - if the attribute list or name is nullpublic static final Map asNameMap(AttributeList al)
al - the list of attributes that need to be mapped
Map
IllegalArgumentException - if the argument is nullpublic static final String toJmx12Attribute(String name)
name - a String that represents any non null name
IllegalArgumentException - if the parameter is null or is of zero lengthpublic static final String toString(AttributeList al)
al - the list of attributes - may be null, in which case an empty String is returned.
public static String dash2CamelCase(String dashed)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||