/**
 * 
 */
package org.rapidsms.java.core.model;

import org.rapidsms.java.core.parser.token.ITokenParser;

/**
 * @author Daniel Myung dmyung@dimagi.com
 * @created Jan 16, 2009
 * 
 * Field model for the initial parsing flow for RapidAndroid
 * 
 */
public class Field {
	private int fieldId;
	private int sequenceId;
	private String name;
	private String prompt;
	private ITokenParser fieldType;
	
	public Field(int id, int sequence, String name, String prompt, ITokenParser ftype) {
		this.fieldId = id;
		this.sequenceId = sequence;
		this.name = name;
		this.prompt = prompt;
		this.fieldType = ftype;	
	}
	
	public Field() {
		fieldId = -1;
		prompt = "";
		sequenceId = -1;
		fieldType = null;
	}
	
	/**
	 * @return the fieldId
	 */
	public int getFieldId() {
		return fieldId;
	}
	/**
	 * @param fieldId the fieldId to set
	 */
	public void setFieldId(int fieldId) {
		this.fieldId = fieldId;
	}
	/**
	 * @return the sequenceId
	 */
	public int getSequenceId() {
		return sequenceId;
	}
	/**
	 * @param sequenceId the sequenceId to set
	 */
	public void setSequenceId(int sequenceId) {
		this.sequenceId = sequenceId;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the prompt
	 */
	public String getPrompt() {
		return prompt;
	}
	/**
	 * @param prompt the prompt to set
	 */
	public void setPrompt(String prompt) {
		this.prompt = prompt;
	}
	/**
	 * @return the fieldType
	 */
	public ITokenParser getFieldType() {
		return fieldType;
	}
	/**
	 * @param fieldType the fieldType to set
	 */
	public void setFieldType(ITokenParser fieldType) {
		this.fieldType = fieldType;
	}
	
	
}

@@ -370,22 +370,27 @@
  String 
-prompt
+description
 ;%0D%0A%09priv
@@ -477,22 +477,27 @@
  String 
-prompt
+description
 , IToken
@@ -590,39 +590,49 @@
 me;%0D%0A%09%09this.
-prompt = prompt
+description = description
 ;%0D%0A%09%09this.fi
@@ -695,22 +695,27 @@
  -1;%0D%0A%09%09
-prompt
+description
  = %22%22;%0D%0A
@@ -1420,22 +1420,27 @@
 urn the 
-prompt
+description
 %0D%0A%09 */%0D%0A
@@ -1457,22 +1457,27 @@
 ring get
-Prompt
+Description
 () %7B%0D%0A%09%09
@@ -1483,22 +1483,27 @@
 %09return 
-prompt
+description
 ;%0D%0A%09%7D%0D%0A%09
@@ -1522,25 +1522,35 @@
 ram 
-prompt the prompt
+description the description
  to 
@@ -1580,55 +1580,75 @@
  set
-Prompt(String prompt) %7B%0D%0A%09%09this.prompt = prompt
+Description(String description) %7B%0D%0A%09%09this.description = description
 ;%0D%0A%09

refactor prompt to be "description"