/** * Read mappings from a DOM <tt>Document</tt> * * @param doc The DOM document * @return this (for method chaining purposes) * @throws MappingException Indicates problems reading the DOM or processing * the mapping document. * * @deprecated Use addURL, addResource, addFile, etc. instead */ @Deprecated public Configuration addDocument(org.w3c.dom.Document doc) throws MappingException { metadataSources.addDocument( doc ); return this; }
/** * Read mappings from a DOM <tt>Document</tt> * * @param doc The DOM document * @return this (for method chaining purposes) * @throws MappingException Indicates problems reading the DOM or processing * the mapping document. * * @deprecated Use addURL, addResource, addFile, etc. instead */ @Deprecated public Configuration addDocument(org.w3c.dom.Document doc) throws MappingException { metadataSources.addDocument( doc ); return this; }