using System;
using System.ComponentModel.DataAnnotations;
namespace Yavsc.Model.FrontOffice
{
/// <summary>
/// Form input.
/// </summary>
public abstract class FormInput: FormElement
/// Gets or sets the identifier, unique in its Form.
/// <value>
/// The identifier.
/// </value>
[Required]
[StringLength(256)]
public string Id { get; set; }
/// Gets the type.
/// <value>The type.</value>
public abstract string Type { get; }
private string name=null;
/// Gets or sets the name.
/// <value>The name.</value>
public string Name { get { return name == null ? Id : name; } set { name = value; } }
}