// Switch to Mata interpreter/compiler mata: // Drops class object if it already exists // mata drop form() // Definition of HTML Tag form Mata Class // Defines an HTML form for user input// Information retrieved from http://www.w3schools.com/tags/tag_form.asp class form extends htmlglobal { // Define private member variables private: // Static/final variables static string scalar opens, opene, close // String scalar attributes string scalar htmlaccept, htmlaccept_charset, htmlaction, htmlautocomplete, htmlenctype, htmlmethod, htmlname, htmlnovalidate, htmltarget // Make class args non-static to prevent assignment of class args to all instances of class string scalar classargs // Define public members/methods public: // Class constructor method void new() // Setter methods class form scalar setClassArgs(), setAccept(), setAccept_Charset(), setAction(), setAutocomplete(), setEnctype(), setMethod(), setName(), setNovalidate(), setTarget() // Getter methods string scalar getOpens(), getOpene(), getClose(), print(), getClassArgs(), getAccept(), getAccept_Charset(), getAction(), getAutocomplete(), getEnctype(), getMethod(), getName(), getNovalidate(), getTarget() } // End of class declaration // Class constructor method declaration void form::new() { // Defines the start of the opening tag for the class this.opens = "