// Path: src/org/forecat/client/translation/TranslationInputJso.java
// public class TranslationInputJso extends JavaScriptObject {
// 
// 	protected TranslationInputJso() {
// 	}
// 
// 	public final native String getSourceText() /*-{
// 		return this.sourceText;
// 	}-*/;
// 
// 	public final native String getSourceCode() /*-{
// 		return this.sourceCode;
// 	}-*/;
// 
// 	public final native String getTargetCode() /*-{
// 		return this.targetCode;
// 	}-*/;
// 
// 	public final native int getMaxSegmentLength() /*-{
// 		return this.maxSegmentLength;
// 	}-*/;
// 
// 	public final native int getMinSegmentLength() /*-{
// 		return this.minSegmentLength;
// 	}-*/;
// 
// }


import java.io.Serializable;
import org.forecat.client.translation.TranslationInputJso;
import com.google.gwt.user.client.rpc.IsSerializable;
package org.forecat.shared.translation;




@SuppressWarnings("serial")
public class TranslationInput implements Serializable, IsSerializable {

	String sourceText;
	String sourceCode;
	String targetCode;
	int maxSegmentLength;
	int minSegmentLength;

	/**
	 * From Serializable documentation
	 * (http://docs.oracle.com/javase/1.5.0/docs/api/java/io/Serializable.html): "To allow subtypes
	 * of non-serializable classes to be serialized, the subtype may assume responsibility for
	 * saving and restoring the state of the supertype's public, protected, and (if accessible)
	 * package fields. The subtype may assume this responsibility only if the class it extends has
	 * an accessible no-arg constructor to initialize the class's state. It is an error to declare a
	 * class Serializable if this is not the case. The error will be detected at runtime."
	 */
	protected TranslationInput() {
	}

	public TranslationInput(String sourceText, String sourceCode, String targetCode,
			int maxSegmentLength, int minSegmentLength) {
		this.sourceText = sourceText;
		this.sourceCode = sourceCode;
		this.targetCode = targetCode;
		this.maxSegmentLength = maxSegmentLength;
		this.minSegmentLength = minSegmentLength;
	}

// Path: src/org/forecat/client/translation/TranslationInputJso.java
// public class TranslationInputJso extends JavaScriptObject {
// 
// 	protected TranslationInputJso() {
// 	}
// 
// 	public final native String getSourceText() /*-{
// 		return this.sourceText;
// 	}-*/;
// 
// 	public final native String getSourceCode() /*-{
// 		return this.sourceCode;
// 	}-*/;
// 
// 	public final native String getTargetCode() /*-{
// 		return this.targetCode;
// 	}-*/;
// 
// 	public final native int getMaxSegmentLength() /*-{
// 		return this.maxSegmentLength;
// 	}-*/;
// 
// 	public final native int getMinSegmentLength() /*-{
// 		return this.minSegmentLength;
// 	}-*/;
// 
// }


// Path: src/org/forecat/shared/translation/TranslationInput.java
import java.io.Serializable;
import org.forecat.client.translation.TranslationInputJso;
import com.google.gwt.user.client.rpc.IsSerializable;

package org.forecat.shared.translation;




@SuppressWarnings("serial")
public class TranslationInput implements Serializable, IsSerializable {

	String sourceText;
	String sourceCode;
	String targetCode;
	int maxSegmentLength;
	int minSegmentLength;

	/**
	 * From Serializable documentation
	 * (http://docs.oracle.com/javase/1.5.0/docs/api/java/io/Serializable.html): "To allow subtypes
	 * of non-serializable classes to be serialized, the subtype may assume responsibility for
	 * saving and restoring the state of the supertype's public, protected, and (if accessible)
	 * package fields. The subtype may assume this responsibility only if the class it extends has
	 * an accessible no-arg constructor to initialize the class's state. It is an error to declare a
	 * class Serializable if this is not the case. The error will be detected at runtime."
	 */
	protected TranslationInput() {
	}

	public TranslationInput(String sourceText, String sourceCode, String targetCode,
			int maxSegmentLength, int minSegmentLength) {
		this.sourceText = sourceText;
		this.sourceCode = sourceCode;
		this.targetCode = targetCode;
		this.maxSegmentLength = maxSegmentLength;
		this.minSegmentLength = minSegmentLength;
	}

	public TranslationInput(TranslationInputJso jso) {