Community
Participate
Working Groups
Sapphire XML namespace support somehow missed list and element binding, or at least the mapping specification. You can can reference namespace in the path() attribute, but not in the element() attribute of the mappings. Sample scenario: @GenerateImpl @XmlRootBinding( namespace = "urn:switchyard-config:switchyard:1.0", elementName = "switchyard" ) @XmlNamespace( uri = "http://docs.oasis-open.org/ns/opencsa/sca/200912", prefix = "sca" ) public interface ISwitchyard extends IModelElement { ModelElementType TYPE = new ModelElementType( ISwitchyard.class ); // *** Composites *** @Type( base = IComposite.class ) @XmlListBinding( mappings = @XmlListBinding.Mapping( element = "sca:composite", type = IComposite.class ) ) ListProperty PROP_COMPOSITES = new ListProperty( TYPE, "Composites" ); ModelElementList<IComposite> getComposites(); }
Fixed. Need to add unit tests.
Implemented test case TestXmlBinding0003 to cover variety of ways that namespaces can be utilized in xml binding, including the scenarios described in this bug. Marking as fixed.
Verified in unit test.