#1583 do not serialize choice group
This commit is contained in:
parent
115074ee60
commit
66e35e1af6
|
@ -889,6 +889,7 @@ public class XmlParser extends ParserBase {
|
|||
xml.attribute(child.getProperty().getXmlNamespace(),child.getProperty().getXmlName(), av);
|
||||
}
|
||||
}
|
||||
if (!element.getProperty().getDefinition().hasExtension(ToolingExtensions.EXT_ID_CHOICE_GROUP)) {
|
||||
if (linkResolver != null)
|
||||
xml.link(linkResolver.resolveProperty(element.getProperty()));
|
||||
if (!xml.namespaceDefined(element.getProperty().getXmlNamespace())) {
|
||||
|
@ -896,6 +897,7 @@ public class XmlParser extends ParserBase {
|
|||
xml.namespace(element.getProperty().getXmlNamespace(), abbrev);
|
||||
}
|
||||
xml.enter(element.getProperty().getXmlNamespace(), elementName);
|
||||
}
|
||||
|
||||
if (!root && element.getSpecial() != null) {
|
||||
if (linkResolver != null)
|
||||
|
@ -919,11 +921,13 @@ public class XmlParser extends ParserBase {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (!element.getProperty().getDefinition().hasExtension(ToolingExtensions.EXT_ID_CHOICE_GROUP)) {
|
||||
if (!root && element.getSpecial() != null)
|
||||
xml.exit(element.getProperty().getXmlNamespace(),element.getType());
|
||||
xml.exit(element.getProperty().getXmlNamespace(),elementName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private String makeNamespaceAbbrev(Property property, IXMLWriter xml) {
|
||||
// it's a cosmetic thing, but we're going to try to come up with a nice namespace
|
||||
|
|
Loading…
Reference in New Issue