// Switch to Mata interpreter/compiler
mata:
// Drops class object if it already exists
// mata drop label()
// Definition of HTML Tag label Mata Class
// Defines a labelfor an element// Information retrieved from http://www.w3schools.com/tags/tag_label.asp
class label extends htmlglobal {
// Define private member variables
private:
// Static/final variables
static string scalar opens, opene, close
// String scalar attributes
string scalar htmlfor, htmlform
// 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 label scalar setClassArgs(), setFor(), setForm()
// Getter methods
string scalar getOpens(), getOpene(), getClose(), print(), getClassArgs(), getFor(), getForm()
} // End of class declaration
// Class constructor method declaration
void label::new() {
// Defines the start of the opening tag for the class
this.opens = "