// not much we can do without the class, the superclass should have
// set the error code now, just abandon
return result;
}
while (propIterator.hasNext()) {
EnvironmentProperty ep = (EnvironmentProperty) propIterator.next();
// Set method first
String propertyName = Character.toUpperCase(ep.getName().charAt(0)) + ep.getName().substring(1);
String setMethodName = "set" + propertyName;
Class[] parmTypes = new Class[] { ep.getValueType() };
Method m = getMethod(mcf, setMethodName, parmTypes);
if (m!=null) {
result.addGoodDetails(smh.getLocalString
("tests.componentNameConstructor",
"For [ {0} ]",
new Object[] {compName.toString()}));
result.addGoodDetails(smh.getLocalString(getClass().getName() + ".passed",
"Found a JavaBeans compliant accessor method [ {0} ] for the config-property [ {1} ]",
new Object[] { m, ep.getName()}));
} else {
oneFailed=true;
result.addErrorDetails(smh.getLocalString
("tests.componentNameConstructor",
"For [ {0} ]",
new Object[] {compName.toString()}));
result.addErrorDetails(smh.getLocalString
(getClass().getName() + ".failed",
"Error: There is no JavaBeans compliant accessor method [ {0} ] implemented in [ {1} ] for the config-property [ {2} ]",
new Object[] { "public void "+ setMethodName+"("+ep.getValueType().getName()+")",
mcf.getName(),
ep.getName()}));
}
String getMethodName = "get" + propertyName;
m = getMethod(mcf, getMethodName, null);
if (m!=null) {
result.addGoodDetails(smh.getLocalString
("tests.componentNameConstructor",
"For [ {0} ]",
new Object[] {compName.toString()}));
result.addGoodDetails(smh.getLocalString(getClass().getName() + ".passed",
"Found a JavaBeans compliant accessor method [ {0} ] for the config-property [ {1} ]",
new Object[] { m, ep.getName()}));
} else {
oneFailed=true;
result.addErrorDetails(smh.getLocalString
("tests.componentNameConstructor",
"For [ {0} ]",
new Object[] {compName.toString()}));
result.addErrorDetails(smh.getLocalString
(getClass().getName() + ".failed",
"Error: There is no JavaBeans compliant accessor method [ {0} ] implemented in [ {1} ] for the config-property [ {2} ]",
new Object[] { "public " + ep.getValueType().getName() + " " + getMethodName,
mcf.getName(),
ep.getName()}));
}
}
}
}
if (oneFailed) {