rule.setAttribute("class", cor.getClassName());
}
else if (r instanceof InvokeParentRule)
{
InvokeParentRule ipr = (InvokeParentRule) r;
rule = _document.createElement("invoke-parent");
rule.setAttribute("method", ipr.getMethodName());
if (ipr.getDepth() != 1)
rule.setAttribute("depth", Integer.toString(ipr.getDepth()));
}
else if (r instanceof PushAttributeRule)
{
PushAttributeRule par = (PushAttributeRule) r;
rule = _document.createElement("push-attribute");