Methods Summary |
---|
public boolean | apply(javax.management.ObjectName name)Applies the InQueryExp on a MBean.
if (valueList != null) {
ValueExp v = val.apply(name);
boolean numeric = v instanceof NumericValueExp;
for (int i = 0; i < valueList.length; i++) {
if (numeric) {
if (((NumericValueExp)valueList[i]).doubleValue() ==
((NumericValueExp)v).doubleValue()) {
return true;
}
} else {
if (((StringValueExp)valueList[i]).getValue().equals(
((StringValueExp)v).getValue())) {
return true;
}
}
}
}
return false;
|
private java.lang.String | generateValueList()
if (valueList == null || valueList.length == 0) {
return "";
}
StringBuffer result = new StringBuffer(valueList[0].toString());
for (int i = 1; i < valueList.length; i++) {
result.append(", ");
result.append(valueList[i]);
}
return result.toString();
|
public javax.management.ValueExp | getCheckedValue()Returns the checked value of the query.
return val;
|
public javax.management.ValueExp[] | getExplicitValues()Returns the array of values of the query.
return valueList;
|
public java.lang.String | toString()Returns the string representing the object.
return val + " in (" + generateValueList() + ")";
|