jadex.xml.IPostProcessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-xml Show documentation
Show all versions of jadex-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;
/**
* Post-processes objects after an XML has been loaded.
*/
public interface IPostProcessor
{
/** If this object is returned by the post-processor, the object will be discarded by the reader. */
public static final Object DISCARD_OBJECT = new Object();
//-------- methods --------
/**
* Post-process an object after an XML has been loaded.
* @param context The context.
* @param object The object to post process.
* @return A possibly other object for replacing the original.
* Null for no change.
* Only possibly when processor is applied in first pass.
*/
public Object postProcess(IContext context, Object object);
/**
* Get the pass number.
* @return The pass number (starting with 0 for first pass).
*/
public int getPass();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy