rule.setAttribute("property", spr.getPropertyName());
rule.setAttribute("value", spr.getValue());
}
else if (r instanceof ConversionDescriptor)
{
ConversionDescriptor cd = (ConversionDescriptor) r;
rule = _document.createElement("conversion");
rule.setAttribute("class", cd.getClassName());
if (!cd.getParentMethodName().equals("addElement"))
rule.setAttribute("parent-method", cd.getParentMethodName());
for (Iterator j = cd.getAttributeMappings().iterator(); j.hasNext();)
{
AttributeMappingDescriptor amd = (AttributeMappingDescriptor) j.next();
Element map = _document.createElement("map");