Element compElem = parent.addElement("DesignerComponent");
writeHeader(comp, compElem);
Attribute cdeModelIgnoreAttr = comp.tryGetAttribute("cdeModelIgnore");
Attribute cdeModelPrefixAttr = comp.tryGetAttribute("cdeModelPrefix");
int ignoreCount = 0;
if(cdeModelIgnoreAttr != null) { ignoreCount++; }
if(cdeModelPrefixAttr != null) { ignoreCount++; }
if(comp.getAttributeCount() > ignoreCount)
{
writeMetadata(comp, compElem);
}
// ----------------
// CONTENTS
Element contentsElem = compElem.addElement("Contents");
Element modelElem = contentsElem.addElement("Model");
if(cdeModelIgnoreAttr != null)
{
modelElem.addAttribute("ignore", cdeModelIgnoreAttr.getValue());
}
if(cdeModelPrefixAttr != null)
{
modelElem.addAttribute("prefix", cdeModelPrefixAttr.getValue());
}
// Property Usages
for(String defName : comp.getDefinitionNames())
{