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

jadex.xml.LinkingInfo 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: 3.0.117
Show newest version
package jadex.xml;

/**
 *  The link info stores how parent - child(ren) should be composed.
 *  Bulk mode means that linking is invoked only after all children 
 *  have been collected.
 */
public class LinkingInfo
{
	//-------- constants --------

	/** Default link mode. */
	public static final boolean DEFAULT_BULKLINK_MODE = false;
	
	//-------- attributes --------

	/** The linker. */
	protected Object linker;
	
	/** The link mode (determined by the linker if present). */
	protected boolean bulklink;

	//-------- constructors --------

	/**
	 *  Create a new linking info.
	 */
	public LinkingInfo(boolean bulklink)
	{
		this(null, bulklink);
	}
	
	/**
	 *  Create a new linking info.
	 */
	public LinkingInfo(Object linker)
	{
		this(linker, false);
	}
	
	/**
	 *  Create a new linking info.
	 */
	public LinkingInfo(Object linker, boolean bulklink)
	{
		this.linker = linker;
		this.bulklink = bulklink;
	}

	//-------- methods --------
	
	/**
	 *  Get the linker.
	 *  @return The linker.
	 */
	public Object getLinker()
	{
		return linker;
	}

	/**
	 *  Get the bulklink.
	 *  @return The bulklink.
	 */
	public boolean isBulkLink()
	{
		return bulklink;
	}

	/**
	 *  Get the string representation.
	 *  @return The string representation.
	 */
	public String toString()
	{
		return "LinkingInfo(bulklink=" + this.bulklink + ", linker="
			+ this.linker + ")";
	}
	
	

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy