[Practicalxml-commits] SF.net SVN: practicalxml:[89] branches/dev-1.1/src/main/java/net/sf/ practi
Brought to you by:
kdgregory
From: Auto-Generated S. C. M. <pra...@li...> - 2009-07-15 19:31:59
|
Revision: 89 http://practicalxml.svn.sourceforge.net/practicalxml/?rev=89&view=rev Author: kdgregory Date: 2009-07-15 19:31:56 +0000 (Wed, 15 Jul 2009) Log Message: ----------- remove unused methods Modified Paths: -------------- branches/dev-1.1/src/main/java/net/sf/practicalxml/converter/BeanOutputHandler.java Modified: branches/dev-1.1/src/main/java/net/sf/practicalxml/converter/BeanOutputHandler.java =================================================================== --- branches/dev-1.1/src/main/java/net/sf/practicalxml/converter/BeanOutputHandler.java 2009-07-15 19:28:12 UTC (rev 88) +++ branches/dev-1.1/src/main/java/net/sf/practicalxml/converter/BeanOutputHandler.java 2009-07-15 19:31:56 UTC (rev 89) @@ -26,7 +26,6 @@ import java.util.Set; import javax.xml.XMLConstants; -import org.w3c.dom.Document; import org.w3c.dom.Element; @@ -70,47 +69,6 @@ //---------------------------------------------------------------------------- -// Public methods -//---------------------------------------------------------------------------- - - /** - * Convenience method to create a new document and invoke conversion. - * This document will not namespace its elements. - * - * @param bean The object to be converted. - * @param rootName The name of the root element of the new document. - * @param options Options to control the output structure. Options - * are additive, and are either on (passed here) or - * off. - */ - public static Document newDocument(Object bean, String rootName, BeanOutputOptions... options) - { - return newDocument(bean, null, rootName, options); - } - - - /** - * Convenience method to create a new document and invoke conversion, - * with all elements belonging to a specified namespace. - * - * @param bean The object to be converted. - * @param nsUri Namespace for this document; all elements will - * have the same namespace. If <code>null</code>, - * the elements will not be namespaced. - * @param rootName The name of the root element of the new document. - * @param options Options to control the output structure. Options - * are additive, and are either on (passed here) or - * off. - */ - public static Document newDocument(Object bean, String nsUri, String rootName, - BeanOutputOptions... options) - { - Element root = DomUtil.newDocument(nsUri, rootName); - return root.getOwnerDocument(); - } - - -//---------------------------------------------------------------------------- // OutputHandler implementation //---------------------------------------------------------------------------- This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |