Class unmappedContentHandlerClass = unmarshaller.getUnmappedContentHandlerClass(); UnmappedContentHandler unmappedContentHandler; if (null == unmappedContentHandlerClass) {
Class unmappedContentHandlerClass = unmarshaller.getUnmappedContentHandlerClass(); UnmappedContentHandler unmappedContentHandler; if (null == unmappedContentHandlerClass) {
protected void processComplexElement() throws SAXException { getParent().unmappedContent(); Class unmappedContentHandlerClass = getParent().getUnmarshaller().getUnmappedContentHandlerClass(); UnmappedContentHandler unmappedContentHandler; if (null == unmappedContentHandlerClass) { unmappedContentHandler = UnmarshalRecord.DEFAULT_UNMAPPED_CONTENT_HANDLER; } else { try { PrivilegedNewInstanceFromClass privilegedNewInstanceFromClass = new PrivilegedNewInstanceFromClass(unmappedContentHandlerClass); unmappedContentHandler = (UnmappedContentHandler)privilegedNewInstanceFromClass.run(); } catch (ClassCastException e) { throw XMLMarshalException.unmappedContentHandlerDoesntImplement(e, unmappedContentHandlerClass.getName()); } catch (IllegalAccessException e) { throw XMLMarshalException.errorInstantiatingUnmappedContentHandler(e, unmappedContentHandlerClass.getName()); } catch (InstantiationException e) { throw XMLMarshalException.errorInstantiatingUnmappedContentHandler(e, unmappedContentHandlerClass.getName()); } } UnmappedContentHandlerWrapper unmappedContentHandlerWrapper = new UnmappedContentHandlerWrapper(getParent(), unmappedContentHandler); executeEvents(unmappedContentHandlerWrapper); } }
protected void processComplexElement() throws SAXException { getParent().unmappedContent(); Class unmappedContentHandlerClass = getParent().getUnmarshaller().getUnmappedContentHandlerClass(); UnmappedContentHandler unmappedContentHandler; if (null == unmappedContentHandlerClass) { unmappedContentHandler = UnmarshalRecord.DEFAULT_UNMAPPED_CONTENT_HANDLER; } else { try { PrivilegedNewInstanceFromClass privilegedNewInstanceFromClass = new PrivilegedNewInstanceFromClass(unmappedContentHandlerClass); unmappedContentHandler = (UnmappedContentHandler)privilegedNewInstanceFromClass.run(); } catch (ClassCastException e) { throw XMLMarshalException.unmappedContentHandlerDoesntImplement(e, unmappedContentHandlerClass.getName()); } catch (IllegalAccessException e) { throw XMLMarshalException.errorInstantiatingUnmappedContentHandler(e, unmappedContentHandlerClass.getName()); } catch (InstantiationException e) { throw XMLMarshalException.errorInstantiatingUnmappedContentHandler(e, unmappedContentHandlerClass.getName()); } } UnmappedContentHandlerWrapper unmappedContentHandlerWrapper = new UnmappedContentHandlerWrapper(getParent(), unmappedContentHandler); executeEvents(unmappedContentHandlerWrapper); } }
return; Class unmappedContentHandlerClass = unmarshaller.getUnmappedContentHandlerClass(); if (null == unmappedContentHandlerClass) { throw XMLMarshalException.noDescriptorWithMatchingRootElement(rootQName.toString());
return; Class unmappedContentHandlerClass = unmarshaller.getUnmappedContentHandlerClass(); if (null == unmappedContentHandlerClass) { throw XMLMarshalException.noDescriptorWithMatchingRootElement(rootQName.toString());