org.jdom.JDOMFactory Java Examples

The following examples show how to use org.jdom.JDOMFactory. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JDomWriter.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @since 1.4
 */
public JDomWriter(
                  final Element container, final JDOMFactory factory,
                  final NameCoder nameCoder) {
    super(container, nameCoder);
    documentFactory = factory;
}
 
Example #2
Source File: StaxBuilder.java    From cxf with Apache License 2.0 5 votes vote down vote up
private Document buildInternal(XMLStreamReader r) throws XMLStreamException {
    /*
     * Should we do sanity checking to see that r is positioned at
     * beginning in the non-mid-stream case?
     */
    JDOMFactory f = factory;
    if (f == null) {
        f = new UncheckedJDOMFactory();
    }
    Document doc = f.document(null);
    buildTree(f, r, doc);
    return doc;
}
 
Example #3
Source File: JDomWriter.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/**
 * @since 1.2
 * @deprecated As of 1.4 use {@link JDomWriter#JDomWriter(Element, JDOMFactory, NameCoder)} instead.
 */
public JDomWriter(
                  final Element container, final JDOMFactory factory,
                  final XmlFriendlyReplacer replacer) {
    this(container, factory, (NameCoder)replacer);
}
 
Example #4
Source File: JDomWriter.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
public JDomWriter(final Element container, final JDOMFactory factory) {
    this(container, factory, new XmlFriendlyNameCoder());
}
 
Example #5
Source File: JDomWriter.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/**
 * @since 1.4
 */
public JDomWriter(final JDOMFactory factory, final NameCoder nameCoder) {
    this(null, factory, nameCoder);
}
 
Example #6
Source File: JDomWriter.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
public JDomWriter(final JDOMFactory factory) {
    this(null, factory);
}
 
Example #7
Source File: StaxBuilder.java    From cxf with Apache License 2.0 4 votes vote down vote up
public void setFactory(JDOMFactory f) {
    factory = f;
}
 
Example #8
Source File: LineNumberSAXBuilder.java    From jts with GNU Lesser General Public License v2.1 4 votes vote down vote up
public MySAXHandler(JDOMFactory f)
                  throws IOException
{
	super(f);
}
 
Example #9
Source File: JDomWriter.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * @since 1.2.1
 * @deprecated As of 1.4 use {@link JDomWriter#JDomWriter(JDOMFactory, NameCoder)} instead.
 */
public JDomWriter(final JDOMFactory factory, final XmlFriendlyReplacer replacer) {
    this(null, factory, (NameCoder)replacer);
}
 
Example #10
Source File: StaxBuilder.java    From cxf with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the current {@link org.jdom.JDOMFactory} in use, if one has been
 * previously set with {@link #setFactory}, otherwise null.
 *
 * @return the factory builder will use
 */
public JDOMFactory getFactory() {
    return factory;
}