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

org.wicketstuff.simile.timeline.model.JsonConstructor Maven / Gradle / Ivy

There is a newer version: 1.5-RC5.1
Show newest version
package org.wicketstuff.simile.timeline.model;

import net.sf.json.JSONObject;

/**
 * 'model class' that will be converted into a call of a constructor
 * using 'object' as parameter when converted by {@link JSONObject}.fromObject
 * 
 * @author arnouten
 *
 * @param 
 */
public class JsonConstructor {
	private String name;
	
	private T object;
	
	public JsonConstructor(String name, T object)
	{
		this.object = object;
		this.name = name;
	}

	public T getObject() {
		return object;
	}
	
	public String getName()
	{
		return name;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy