String name = propDesc.getName();
if (name.equals("class"))
continue;
BeanPropertyDescriptor beanDesc = new BeanPropertyDescriptor();
beanDesc.setReadMethod(propDesc.getReadMethod());
beanDesc.setWriteMethod(propDesc.getWriteMethod());
ElementDesc elDesc = desc.getElementDesc(name);
boolean addDesc = true; // Should we add this (new) element?
if (elDesc == null) {
elDesc = new ElementDesc();
elDesc.setFieldName(name);
} else {
addDesc = false; // Already present, so don't add it again
}
Class type;
boolean isCollection = false;
if (propDesc instanceof IndexedPropertyDescriptor) {
IndexedPropertyDescriptor iProp =
(IndexedPropertyDescriptor)propDesc;
beanDesc.setIndexedReadMethod(iProp.getIndexedReadMethod());
beanDesc.setIndexedWriteMethod(iProp.getIndexedWriteMethod());
type = iProp.getIndexedPropertyType();
elDesc.setIndexedAccessor(beanDesc);
isCollection = true;
// elDesc.setItemQName(new QName("http://foo", "item"));
} else {