Methods Summary |
---|
javax.management.MBeanAttributeInfo | createAttributeInfo()Create and return a ModelMBeanAttributeInfo object that
corresponds to the attribute described by this instance.
// Return our cached information (if any)
if (info == null) {
info = new MBeanAttributeInfo(getName(), getType(), getDescription(),
isReadable(), isWriteable(), false);
}
return (MBeanAttributeInfo)info;
|
public java.lang.String | getDisplayName()The display name of this attribute.
// ------------------------------------------------------------- Properties
return (this.displayName);
|
public java.lang.String | getGetMethod()The name of the property getter method, if non-standard.
if(getMethod == null)
getMethod = getMethodName(getName(), true, isIs());
return (this.getMethod);
|
private java.lang.String | getMethodName(java.lang.String name, boolean getter, boolean is)Create and return the name of a default property getter or setter
method, according to the specified values.
StringBuffer sb = new StringBuffer();
if (getter) {
if (is)
sb.append("is");
else
sb.append("get");
} else
sb.append("set");
sb.append(Character.toUpperCase(name.charAt(0)));
sb.append(name.substring(1));
return (sb.toString());
|
public java.lang.String | getSetMethod()The name of the property setter method, if non-standard.
if( setMethod == null )
setMethod = getMethodName(getName(), false, false);
return (this.setMethod);
|
public boolean | isIs()Is this a boolean attribute with an "is" getter?
return (this.is);
|
public boolean | isReadable()Is this attribute readable by management applications?
return (this.readable);
|
public boolean | isWriteable()Is this attribute writeable by management applications?
return (this.writeable);
|
public void | setDisplayName(java.lang.String displayName)
this.displayName = displayName;
|
public void | setGetMethod(java.lang.String getMethod)
this.getMethod = getMethod;
|
public void | setIs(boolean is)
this.is = is;
|
public void | setReadable(boolean readable)
this.readable = readable;
|
public void | setSetMethod(java.lang.String setMethod)
this.setMethod = setMethod;
|
public void | setWriteable(boolean writeable)
this.writeable = writeable;
|