}
for (int i = 0; i < counter; i++) {
try {
XAccessible ch = oObj.getAccessibleChild(i);
XAccessibleContext chAC = ch.getAccessibleContext();
log.println("## Child " + i + ": " +
chAC.getAccessibleDescription());
if (!AccessibilityTools.equals(chAC.getAccessibleParent()
.getAccessibleContext(),
oObj)) {
log.println("The parent of child and component " +
"itself differ.");
log.println("\tRole:");
log.println("Getting: " +
chAC.getAccessibleParent()
.getAccessibleContext()
.getAccessibleRole());
log.println("Expected: " + oObj.getAccessibleRole());
log.println("\tImplementationName:");
log.println("Getting: " +
util.utils.getImplName(
chAC.getAccessibleParent()
.getAccessibleContext()));
log.println("Expected: " + util.utils.getImplName(oObj));
log.println("\tAccessibleDescription:");
log.println("Getting(Description): " +
chAC.getAccessibleParent()
.getAccessibleContext()
.getAccessibleDescription());
log.println("Expected(Description): " +
oObj.getAccessibleDescription());
log.println("\tAccessibleName:");
log.println("Getting(Name): " +
chAC.getAccessibleParent()
.getAccessibleContext()
.getAccessibleName());
log.println("Expected(Name): " +
oObj.getAccessibleName());
log.println("\tChildCount:");
log.println("Getting: " +
chAC.getAccessibleParent()
.getAccessibleContext()
.getAccessibleChildCount());
log.println("Expected: " +
oObj.getAccessibleChildCount());
log.println("\tParentName:");
log.println("Getting (Name): " +
chAC.getAccessibleParent()
.getAccessibleContext()
.getAccessibleParent()
.getAccessibleContext()
.getAccessibleName());
log.println("Expected(Name): " +
oObj.getAccessibleParent()
.getAccessibleContext()
.getAccessibleName());
log.println("##");
bOK = false;
} else {
log.println("Role: " + chAC.getAccessibleRole());
log.println("Name: " + chAC.getAccessibleName());
log.println("IndexInParent: " +
chAC.getAccessibleIndexInParent());
log.println("ImplementationName: " +
util.utils.getImplName(chAC));
}
} catch (com.sun.star.lang.IndexOutOfBoundsException e) {
e.printStackTrace(log);