Based on the online tutorial for using a custom marshaller to handle maps (http://jibx.sourceforge.net/tutorial/binding-custom.html) and using one form the Jibx-extras package (http://jibx.sourceforge.net/api/org/jibx/extras/HashMapperStringToSchemaType.html), i am unable to generate a schema using the schemaGenerator.
I get the following error when i put the marshaller in the structure: "No handling defined for empty structure with no mapping reference"
If I use the <mapping class="java.util.HashMap".... /> the schema generates but it is blank (i.e. there is nothing in the schema to support the required schema of the marshaller).
The issue seems to be when classifying the element in StructureElement.setMappingReference
If there is no map-as attribute, but there is a marshaller the m_effectiveMapping is never set which seems to be depended upon in DetailDirectory.checkReferences
I've attached a small maven project that demonstrates the issue.
|