/** * INTERNAL: * Create an empty object to be used by empty, complex or simple events. * A childRecord is created on the parent UnmarshalRecord. */ private void createEmptyObject() { try { // Instantiate a new object XMLField xmlFld = (XMLField)mapping.getField(); if (xmlFld.hasLastXPathFragment()) { getParent().setLeafElementType(xmlFld.getLastXPathFragment().getLeafElementType()); } // Create a childRecord on the parent UnmarshalRecord nodeValue.processChild(xPathFragment, getParent(), attributes, xmlDescriptor, mapping); } catch (SAXException e) { throw XMLMarshalException.unmarshalException(e); } }
unmarshalRecord.setLeafElementType(xmlFld.getLastXPathFragment().getLeafElementType()); processChild(xPathFragment, unmarshalRecord, atts, xmlDescriptor, xmlCompositeObjectMapping);
unmarshalRecord.setLeafElementType(xmlFld.getLastXPathFragment().getLeafElementType()); processChild(xPathFragment, unmarshalRecord, atts, xmlDescriptor, xmlCompositeObjectMapping);
unmarshalRecord.setLeafElementType(xmlFld.getLastXPathFragment().getLeafElementType()); processChild(xPathFragment, unmarshalRecord, atts, xmlDescriptor, xmlCompositeObjectMapping);