valueType = Integer.class;
} else if (valueType == boolean.class) {
valueType = Boolean.class;
}
} else {
ChildPropertyDescriptor p = (ChildPropertyDescriptor) prop;
valueType = p.getChildType();
}
if (!valueType.isAssignableFrom(value.getClass())) {
String message = value.getClass().getName() + " is not a valid type for " + prop.getNodeClass().getName() //$NON-NLS-1$
+ " property '" + prop.getId() + '\''; //$NON-NLS-1$
throw new IllegalArgumentException(message);