/** * Copyright 2012 Neurowork Consulting S.L. * * This file is part of eMobc. * * FormDataItem.java * eMobc Android Framework * * eMobc is free software: you can redistribute it and/or modify * it under the terms of the Affero GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * eMobc is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the Affero GNU General Public License * along with eMobc. If not, see <http://www.gnu.org/licenses/>. * */ package com.emobc.android.levels.impl; import java.util.ArrayList; import java.util.List; /** * Item that contains specific data to <tt>FORM_ACTIVITY</tt> level. * @author Jorge E. Villaverde * @version 0.1 * @since 0.1 */ public class FormDataItem { private FormFieldType type; private String fieldName; private String fieldLabel; private boolean required = false; private List<String> parameters = new ArrayList<String>(); public FormFieldType getType() { return type; } public void setType(FormFieldType type) { this.type = type; } public String getFieldName() { return fieldName; } public void setFieldName(String fieldName) { this.fieldName = fieldName; } public boolean isRequired() { return required; } public void setRequired(boolean required) { this.required = required; } public List<String> getParameters() { return parameters; } public void setParameters(List<String> parameters) { this.parameters = parameters; } public String getFieldLabel() { return fieldLabel; } public void setFieldLabel(String fieldLabel) { this.fieldLabel = fieldLabel; } }