jadex.xml.reader.XMLReaderFactoryDesktop Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-serialization-xml Show documentation
Show all versions of jadex-serialization-xml Show documentation
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.
package jadex.xml.reader;
import jadex.xml.stax.JadexXMLReporterWrapper;
import jadex.xml.stax.XMLReporter;
/**
* Factory implementation for the Java SE Environment.
* Uses {@link Reader}.
*/
public class XMLReaderFactoryDesktop extends XMLReaderFactory
{
//---------- methods ------------
/**
* Creates a new default XML Reader.
*
* @return reader
*/
public AReader createReader()
{
return new Reader();
}
/**
* Creates a new XML Reader.
*/
public AReader createReader(boolean bulklink)
{
return new Reader(bulklink);
}
/**
* Creates a new XML Reader.
*/
public AReader createReader(boolean bulklink, boolean validate, XMLReporter reporter)
{
return new Reader(bulklink, validate, JadexXMLReporterWrapper.fromXMLReporter(reporter));
}
/**
* Creates a new XML Reader.
*/
public AReader createReader(boolean bulklink, boolean validate, boolean coalescing, XMLReporter reporter)
{
return new Reader(bulklink, validate, coalescing, JadexXMLReporterWrapper.fromXMLReporter(reporter));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy