jadex.xml.reader.AReadContext 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 java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import jadex.commons.collection.MultiCollection;
import jadex.xml.IContext;
import jadex.xml.StackElement;
import jadex.xml.TypeInfoPathManager;
import jadex.xml.stax.ILocation;
import jadex.xml.stax.QName;
import jadex.xml.stax.XMLReporter;
/**
* Context for reader that stores all relevant information of the read process.
*/
public class AReadContext implements IContext
{
//-------- attributes --------
/** The type info path manager. */
protected TypeInfoPathManager pathmanager;
/** The default object handler. */
protected IObjectReaderHandler defaulthandler;
/** The parser. */
protected IXMLReader parser;
/** The parser. */
protected XMLReporter reporter;
/** The classloader. */
protected ClassLoader classloader;
/** The root object. */
protected Object rootobject;
/** The stack. */
protected List stack;
/** The current comment. */
protected String comment;
/** The read objects per id. */
protected Map readobjects;
/** The readignore counter (0=do not ignore). */
protected int readignore;
/** The call context. */
protected Object callcontext;
/** The post processors. */
protected MultiCollection postprocessors;
/** The map or array information. */
protected Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy