// write attribute element
Class fieldType = propertyDescriptor[i].getType();
// Attribute must be a simple type, enum or SimpleType
if (!types.isAcceptableAsAttribute(fieldType)) {
throw new AxisFault(Messages.getMessage("AttrNotSimpleType00",
propName,
fieldType.getName()));
}
// write attribute element
// TODO the attribute name needs to be preserved from the XML
String elementType = types.writeType(fieldType);
Element elem = types.createAttributeElement(propName,
elementType,
false,
extension.getOwnerDocument());
extension.appendChild(elem);
}
}
continue;
}
BeanPropertyDescriptor bpd = propertyDescriptor[i];
Class type = bpd.getType();
// Attribute must extend a simple type, enum or SimpleType
if (!types.isAcceptableAsAttribute(type)) {
throw new AxisFault(Messages.getMessage("AttrNotSimpleType01",
type.getName()));
}
base = types.writeType(type);
extension.setAttribute("base", base);
}