package pckMapa;

/**
 * Esta Classe representa o registro do trecho do arquivo unicamp.trechos
 * @author Arthur Vieira de Lima Gomes
 * @RA: 972754RecordT
 */
public class RegistroTrecho {
	private String campo1;
	private String campo2;
	private String campo3;
	private String campo4;
	private String campo5;
	private String campo6;
	private String campo7;
	private String campo8;
	private String campo9;
	private String campo10;
	private String campo11;
	private String campo12;
	private java.lang.String[] campo13;
	private String record;
/**
 * RegistroTrecho constructor comment.
 */
public RegistroTrecho() {
	super();
}
/**
 * RegistroTrecho constructor comment.
 * @param c1 java.lang.String
 * @param c2 java.lang.String
 * @param c3 java.lang.String
 * @param c4 java.lang.String
 * @param c5 java.lang.String
 * @param c6 java.lang.String
 * @param c7 java.lang.String
 * @param c8 java.lang.String
 * @param c9 java.lang.String
 * @param c10 java.lang.String
 * @param c11 java.lang.String
 * @param c12 java.lang.String
 * @param c13 java.lang.String[]
 */
public RegistroTrecho(String c1, String c2, String c3, String c4, String c5, String c6, String c7, String c8, String c9, String c10, String c11, String c12, String[] c13)
{
	this.campo1 = c1;
	this.campo2 = c2;
	this.campo3 = c3;
	this.campo4 = c4;
	this.campo5 = c5;
	this.campo6 = c6;
	this.campo7 = c7;
	this.campo8 = c8;
	this.campo9 = c9;
	this.campo10 = c10;
	this.campo11 = c11;
	this.campo12 = c12;
	this.campo13 = c13;
}
/**
 * Este método criado por RA:972754
 * @return java.lang.String
 */
public String getCampo1() {
	return campo1;
}
/**
 * Este método criado por RA:972754
 * @return java.lang.String
 */
public String getCampo10() {
	return campo10;
}
/**
 * Este método criado por RA:972754
 * @return java.lang.String
 */
public String getCampo11() {
	return campo11;
}
/**
 * Este método criado por RA:972754
 * @return java.lang.String
 */
public String getCampo12() {
	return campo12;
}
/**
 * Este método criado por RA:972754
 * @return java.lang.String[]
 */
public java.lang.String[] getCampo13() {
	return campo13;
}
/**
 * Este método criado por RA:972754
 * @return java.lang.String
 */
public String getCampo2() {
	return campo2;
}
/**
 * Este método criado por RA:972754
 * @return java.lang.String
 */
public String getCampo3() {
	return campo3;
}
/**
 * Este método criado por RA:972754
 * @return java.lang.String
 */
public String getCampo4() {
	return campo4;
}
/**
 * Este método criado por RA:972754
 * @return java.lang.String
 */
public String getCampo5() {
	return campo5;
}
/**
 * Este método criado por RA:972754
 * @return java.lang.String
 */
public String getCampo6() {
	return campo6;
}
/**
 * Este método criado por RA:972754
 * @return java.lang.String
 */
public String getCampo7() {
	return campo7;
}
/**
 * Este método criado por RA:972754
 * @return java.lang.String
 */
public String getCampo8() {
	return campo8;
}
/**
 * Este método criado por RA:972754
 * @return java.lang.String
 */
public String getCampo9() {
	return campo9;
}
/**
 * Este método criado por RA:972754
 * @return java.lang.String
 */
public String getRecord() {
	return record;
}
/**
 * Este método criado por RA:972754
 * @param newValue java.lang.String
 */
public void setCampo1(String newValue) {
	this.campo1 = newValue;
}
/**
 * Este método criado por RA:972754
 * @param newValue java.lang.String
 */
public void setCampo10(String newValue) {
	this.campo10 = newValue;
}
/**
 * Este método criado por RA:972754
 * @param newValue java.lang.String
 */
public void setCampo11(String newValue) {
	this.campo11 = newValue;
}
/**
 * Este método criado por RA:972754
 * @param newValue java.lang.String
 */
public void setCampo12(String newValue) {
	this.campo12 = newValue;
}
/**
 * Este método criado por RA:972754
 * @param newValue java.lang.String[]
 */
public void setCampo13(java.lang.String[] newValue) {
	this.campo13 = newValue;
}
/**
 * Este método criado por RA:972754
 * @param newValue java.lang.String
 */
public void setCampo2(String newValue) {
	this.campo2 = newValue;
}
/**
 * Este método criado por RA:972754
 * @param newValue java.lang.String
 */
public void setCampo3(String newValue) {
	this.campo3 = newValue;
}
/**
 * Este método criado por RA:972754
 * @param newValue java.lang.String
 */
public void setCampo4(String newValue) {
	this.campo4 = newValue;
}
/**
 * Este método criado por RA:972754
 * @param newValue java.lang.String
 */
public void setCampo5(String newValue) {
	this.campo5 = newValue;
}
/**
 * Este método criado por RA:972754
 * @param newValue java.lang.String
 */
public void setCampo6(String newValue) {
	this.campo6 = newValue;
}
/**
 * Este método criado por RA:972754
 * @param newValue java.lang.String
 */
public void setCampo7(String newValue) {
	this.campo7 = newValue;
}
/**
 * Este método criado por RA:972754
 * @param newValue java.lang.String
 */
public void setCampo8(String newValue) {
	this.campo8 = newValue;
}
/**
 * Este método criado por RA:972754
 * @param newValue java.lang.String
 */
public void setCampo9(String newValue) {
	this.campo9 = newValue;
}
/**
 * Este método criado por RA:972754
 * @param newValue java.lang.String
 */
public boolean setRecord(String newValue)
{
	java.util.StringTokenizer st = new java.util.StringTokenizer(newValue + " ", ":");
	if (st.countTokens() != 13)
		return false;
	this.campo1 = st.nextToken();
	this.campo2 = st.nextToken();
	this.campo3 = st.nextToken();
	this.campo4 = st.nextToken();
	this.campo5 = st.nextToken();
	this.campo6 = st.nextToken();
	this.campo7 = st.nextToken();
	this.campo8 = st.nextToken();
	this.campo9 = st.nextToken();
	this.campo10 = st.nextToken();
	this.campo11 = st.nextToken();
	this.campo12 = st.nextToken();
	String c13 = st.nextToken();
	if (!c13.trim().equals(""))
	{
		java.util.StringTokenizer ct13 = new java.util.StringTokenizer(c13);
		this.campo13 = new String[ct13.countTokens()];
		for (int i = 0; i < this.campo13.length; i++)
			this.campo13[i] = ct13.nextToken().trim();
	}
	return true;
}
/**
 * Este método criado por RA:972754
 * @return java.lang.String
 */
public String toString() {
	StringBuffer c13 = new StringBuffer();
	if(this.campo13 instanceof String[])
		for(int i = 0; i < this.campo13.length; i++)
		{
			c13.append(" " + this.campo13[i] + " ");
		}
	return this.campo1 + " : " + this.campo2 + " : " + this.campo3 + " : " +this.campo4 + " : " + this.campo5 + " : " + this.campo6 + " : " + this.campo7 + " : " + this.campo8 + " : " +this.campo9 + " : " +this.campo10 + " : " +this.campo11 + " : " + this.campo12 + " : " + c13.toString();
}
}