|
||||||||||
| 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 java.util.Map |
asNameMap(javax.management.AttributeList al)
Returns the given list as a map of attributes, keyed on the names of the attribute in the list. |
static boolean |
containsNamedAttribute(javax.management.AttributeList al,
javax.management.Attribute a)
Checks whether an attribute with the name same as that of the given attribute exists in this list. |
static boolean |
containsNamedAttribute(javax.management.AttributeList al,
java.lang.String name)
Checks whether this list contains a JMX Attribute with given name. |
static java.lang.String |
dash2CamelCase(java.lang.String dashed)
|
static java.lang.String |
toJmx12Attribute(java.lang.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 java.lang.String |
toString(javax.management.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(javax.management.AttributeList al,
java.lang.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.
java.lang.IllegalArgumentException - if the attribute list or name is null
public static final boolean containsNamedAttribute(javax.management.AttributeList al,
javax.management.Attribute a)
al - an instance of AttributeLista - an Attribute with a name and a value
java.lang.IllegalArgumentException - if the attribute list or name is nullpublic static final java.util.Map asNameMap(javax.management.AttributeList al)
al - the list of attributes that need to be mapped
Map
java.lang.IllegalArgumentException - if the argument is nullpublic static final java.lang.String toJmx12Attribute(java.lang.String name)
name - a String that represents any non null name
java.lang.IllegalArgumentException - if the parameter is null or is of zero lengthpublic static final java.lang.String toString(javax.management.AttributeList al)
al - the list of attributes - may be null, in which case an empty String is returned.
public static java.lang.String dash2CamelCase(java.lang.String dashed)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||