// Path: src/fi/mamk/osa/solr/SolrField.java
// public class SolrField implements Serializable {
//     
//     private static final long serialVersionUID = 3391525129053148122L;
//     private String name;
//     private Integer boost;
//     private Integer ngramBoost;
//     
//     public String getName() {
//         return name;
//     }
//     
//     public void setName(String name) {
//         this.name = name;
//     }
//     
//     public Integer getBoost() {
//         return boost;
//     }
//     
//     public void setBoost(Integer boost) {
//         this.boost = boost;
//     }
//     
//     public Integer getNgramBoost() {
//         return ngramBoost;
//     }
//     
//     public void setNgramBoost(Integer ngramBoost) {
//         this.ngramBoost = ngramBoost;
//     }
//     
// }


import java.io.Serializable;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.Vector;
import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import fi.mamk.osa.solr.SolrField;
package fi.mamk.osa.ui;




/**A Class to wrap a field in search form
 * 
 * @author JJuven
 *
 */
public class SearchFormField implements Serializable {

    private static final long serialVersionUID = 4939420544493749919L;

    public static enum Type {textarea,text,select,date,radio,checkbox,hidden,custom_yearslider};
	
	private String name;
	private Type type;
	private String messageKey;
	
	private boolean editable               = true;
	private boolean required               = false;
	private boolean generated              = false;
	private boolean visible                = true;
	private boolean autocomplete 		   = false;
	private Vector<FormOption> options	   = null;
	private LinkedHashMap<String, SearchFormField> subFields      = new LinkedHashMap<String, SearchFormField>();
// Path: src/fi/mamk/osa/solr/SolrField.java
// public class SolrField implements Serializable {
//     
//     private static final long serialVersionUID = 3391525129053148122L;
//     private String name;
//     private Integer boost;
//     private Integer ngramBoost;
//     
//     public String getName() {
//         return name;
//     }
//     
//     public void setName(String name) {
//         this.name = name;
//     }
//     
//     public Integer getBoost() {
//         return boost;
//     }
//     
//     public void setBoost(Integer boost) {
//         this.boost = boost;
//     }
//     
//     public Integer getNgramBoost() {
//         return ngramBoost;
//     }
//     
//     public void setNgramBoost(Integer ngramBoost) {
//         this.ngramBoost = ngramBoost;
//     }
//     
// }


// Path: src/fi/mamk/osa/ui/SearchFormField.java
import java.io.Serializable;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.Vector;
import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import fi.mamk.osa.solr.SolrField;

package fi.mamk.osa.ui;




/**A Class to wrap a field in search form
 * 
 * @author JJuven
 *
 */
public class SearchFormField implements Serializable {

    private static final long serialVersionUID = 4939420544493749919L;

    public static enum Type {textarea,text,select,date,radio,checkbox,hidden,custom_yearslider};
	
	private String name;
	private Type type;
	private String messageKey;
	
	private boolean editable               = true;
	private boolean required               = false;
	private boolean generated              = false;
	private boolean visible                = true;
	private boolean autocomplete 		   = false;
	private Vector<FormOption> options	   = null;
	private LinkedHashMap<String, SearchFormField> subFields      = new LinkedHashMap<String, SearchFormField>();
	private Vector<SolrField> solrFields   = new Vector<SolrField>();