All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jadex.xml.writer.XMLWriterFactoryDesktop Maven / Gradle / Ivy

Go to download

Jadex XML is an XML data binding framework for Java and also for other representations. The main idea of Jadex XML is that neither the XML-Schema on the one side nor the Java classes on the other side should define other binding. Instead, a separate mapping between both is used as a mediation. This allows designing the XML representation independent of the Java side but still being able to connect both as desired. This idea was first put forward by the JiBX data binding framework. Jadex XML pushes it further by combining it with the configuration by exception principle. The framework can detect obvious correspondences between both sides automatically and only needs configuration information when translations are necessary. The configuration information is currently specified directly in form of Java configuration classes.

There is a newer version: 4.0.267
Show newest version
package jadex.xml.writer;

/**
 * Factory implementation for the Java SE Environment. Uses {@link Writer}.
 */
public class XMLWriterFactoryDesktop extends XMLWriterFactory
{
	// ---------- methods ------------

	/**
	 * Create a new reader (with genids=true and indent=true).
	 */
	public AWriter createWriter()
	{
		return new Writer();
	}

	/**
	 * Creates a new XML Reader.
	 * 
	 * @param genids
	 * @return reader
	 */
	public AWriter createWriter(boolean genids)
	{
		return new Writer(genids);
	}

	/**
	 * Creates a new default XML Reader.
	 * 
	 * @param genids
	 * @param indents
	 * @return reader
	 */
	public AWriter createWriter(boolean genids, boolean indents)
	{
		return new Writer(genids, indents, true);
	}

	/**
	 * Creates a new default XML Reader.
	 * 
	 * @param genids
	 * @param indents
	 * @return reader
	 */
	public AWriter createWriter(boolean genids, boolean indents, boolean newline)
	{
		return new Writer(genids, indents, newline);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy