public Document createJDom(TagNode rootNode) { this.factory = new DefaultJDOMFactory(); // // If there is no actual root node then return nothing // if (rootNode.getName() == null) return null; Element rootElement = createElement(rootNode); Document document = this.factory.document(rootElement); setAttributes(rootNode, rootElement); createSubnodes(rootElement, rootNode.getAllChildren()); return document; }
/** * @since 1.4.5 */ public JDom2Writer(final Element container, final NameCoder nameCoder) { this(container, new DefaultJDOMFactory(), nameCoder); }
/** * @since 1.4.5 */ public JDom2Writer(final Element container) { this(container, new DefaultJDOMFactory()); }
/** * @since 1.4.5 */ public JDom2Writer() { this(new DefaultJDOMFactory()); }
public JDom2Writer() { this(new DefaultJDOMFactory()); }
public JDom2Writer(Element paramElement) { this(paramElement, new DefaultJDOMFactory()); }
public JDom2Writer(Element paramElement, NameCoder paramNameCoder) { this(paramElement, new DefaultJDOMFactory(), paramNameCoder); }