/** * @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()); }
/** * This will create a new <code>SAXHandler</code> that listens to SAX events * and creates a JDOM Document. The objects will be constructed using the * provided factory. * * @param factory * <code>JDOMFactory</code> to be used for constructing objects */ public SAXHandler(final JDOMFactory factory) { this.factory = factory != null ? factory : new DefaultJDOMFactory(); reset(); }
if (f == null) { f = new DefaultJDOMFactory(); }
/** * @since 1.4.5 */ public JDom2Writer(final Element container) { this(container, new DefaultJDOMFactory()); }
public MavenJDOMWriter() { factory = new DefaultJDOMFactory(); lineSeparator = "\n"; } // -- org.apache.maven.model.io.jdom.MavenJDOMWriter()
/** * @since 1.4.5 */ public JDom2Writer(final Element container, final NameCoder nameCoder) { this(container, new DefaultJDOMFactory(), nameCoder); }
/** * @since 1.4.5 */ public JDom2Writer() { this(new DefaultJDOMFactory()); }
/** * @since 1.4.5 */ public JDom2Writer(final Element container) { this(container, new DefaultJDOMFactory()); }
/** * @since 1.4.5 */ public JDom2Writer() { this(new DefaultJDOMFactory()); }
/** * @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, final NameCoder nameCoder) { this(container, new DefaultJDOMFactory(), nameCoder); }
/** * @since 1.4.5 */ public JDom2Writer(final Element container, final NameCoder nameCoder) { this(container, new DefaultJDOMFactory(), nameCoder); }
/** * @since 1.4.5 */ public JDom2Writer() { this(new DefaultJDOMFactory()); }
/** * @since 1.4.5 */ public JDom2Writer(final Element container) { this(container, new DefaultJDOMFactory()); }
/** * @since 1.4.5 */ public JDom2Writer(final Element container) { this(container, new DefaultJDOMFactory()); }
/** * @since 1.4.5 */ public JDom2Writer() { this(new DefaultJDOMFactory()); }
/** * @since 1.4.5 */ public JDom2Writer() { this(new DefaultJDOMFactory()); }
public Document createJDom(TagNode rootNode) { this.factory = new DefaultJDOMFactory(); Element rootElement = createElement(rootNode); Document document = this.factory.document(rootElement); setAttributes(rootNode, rootElement); createSubnodes(rootElement, rootNode.getAllChildren()); return document; }