package csis626; /** Student Data contains all the Student Personal Info */ public class StudentData { private String name; private String id; private String email; private String address; private String city; private String state; private String zip; private String phone; private String password; private String degree; /** Constructs StudentData initializing the name, id, email, address, city, state, zip, phone, password and degree */ public StudentData(String last_name, String first_name, String middle_name, String input_id, String input_email, String input_address, String input_city, String input_state, String input_zip, String input_phone, String input_password, String input_degree) { name = first_name + " " + middle_name + " " + last_name; id = input_id; email = input_email; address = input_address; city = input_city; state = input_state; zip = input_zip; phone = input_phone; password = input_password; degree = input_degree; } /** Constructs StudentData initializing the name, id, email, address, city, state, zip, phone, password and default degree of "Undecided" */ public StudentData(String last_name, String first_name, String middle_name, String input_id, String input_email, String input_address, String input_city, String input_state, String input_zip, String input_phone, String input_password) { name = first_name + " " + middle_name + " " + last_name; id = input_id; email = input_email; address = input_address; city = input_city; state = input_state; zip = input_zip; phone = input_phone; password = input_password; degree = "Undecided"; } /** Returns the name of the Student @return the name of the Student */ public String getName() { return name; } /** Returns the Id of the Student @return the Id of the Student */ public String getId() { return id; } /** Returns the E-mail of the Student @return the E-mail of the Student */ public String getEmail() { return email; } /** Returns the address of the Student @return the address of the Student */ public String getAddress() { return address; } /** Returns the City (address) of the Student @return the City (address) of the Student */ public String getCity() { return city; } /** Returns the State (address) of the Student @return the State (address) of the Student */ public String getState() { return state; } /** Returns the zip code of the Student @return the zip code of the Student */ public String getZip() { return zip; } /** Returns the phone of the Student @return the phone of the Student */ public String getPhone() { return phone; } /** Returns the password of the Student @return the password of the Student */ public String getPassword() { return password; } /** Returns the degree of the Student @return the degree of the Student */ public String getDegree() { return degree; } /** Converts all elements into a String HTML representation @return the string representation of StudentData */ public String toStringHTML() { return "
Name: " + name + "
Student ID: " + id + "
Password: " + password + "\n
Address: " + getAddress() + ", " + getState() + " " + getZip() + "\n
Phone: " + getPhone() + "\n
E-mail: " + getEmail() + "\n
Degree: " + getDegree(); } } /* End class StudentData */