|
|
|
@ -30,9 +30,9 @@ classDiagram
|
|
|
|
|
+ phone=(String) : Boolean
|
|
|
|
|
+ telegram=(String) : Boolean
|
|
|
|
|
+ email=(String) : Boolean
|
|
|
|
|
+ self.valid_phone_number() : Boolean
|
|
|
|
|
+ self.valid_telegram() : Boolean
|
|
|
|
|
+ self.valid_email() : Boolean
|
|
|
|
|
+ valid_phone_number() : Boolean <<class>>
|
|
|
|
|
+ valid_telegram() : Boolean <<class>>
|
|
|
|
|
+ valid_email() : Boolean <<class>>
|
|
|
|
|
+ git_present() : Boolean
|
|
|
|
|
+ contact_present() : Boolean
|
|
|
|
|
+ contact_info() : String
|
|
|
|
@ -45,16 +45,17 @@ classDiagram
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class StudentRepository {
|
|
|
|
|
+ self.read_from_txt(file_path : String) : List~Student~
|
|
|
|
|
+ self.write_to_txt(file_path : String, students : List~Student~)
|
|
|
|
|
+ read_from_txt(file_path : String) : List~Student~ <<class>>
|
|
|
|
|
+ write_to_txt(file_path : String, students : List~Student~) <<class>>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class StudentShort {
|
|
|
|
|
- surname_initials : String
|
|
|
|
|
+ StudentShort(id : String, surname_initials : String, phone: String, telegram: String, email: String)
|
|
|
|
|
+ self.from_student(student : Student) : StudentShort
|
|
|
|
|
+ self.from_string(id : String, info_string : String) : StudentShort
|
|
|
|
|
+ from_student(student : Student) : StudentShort <<class>>
|
|
|
|
|
+ from_string(id : String, info_string : String) : StudentShort <<class>>
|
|
|
|
|
+ to_s() : String
|
|
|
|
|
- parse_contact_string(contact_string: String) : Array<String> <<class>>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class Student {
|
|
|
|
@ -64,7 +65,7 @@ classDiagram
|
|
|
|
|
- birth_date : Date
|
|
|
|
|
- const NAME_REGEX : String
|
|
|
|
|
+ Student(id : String, git : String, phone: String, telegram: String, email: String, surname : String, name : String, patronymic : String, birth_date : Date)
|
|
|
|
|
+ self.from_string(student_string : String) : Student
|
|
|
|
|
+ from_string(student_string : String) : Student <<class>>
|
|
|
|
|
+ surname_and_initials() : String
|
|
|
|
|
+ to_s() : String
|
|
|
|
|
+ get_info() : String
|
|
|
|
@ -72,7 +73,7 @@ classDiagram
|
|
|
|
|
+ name=(name : String)
|
|
|
|
|
+ patronymic=(patronymic : String)
|
|
|
|
|
+ birth_date=(birthdate : String)
|
|
|
|
|
+ self.valid_name?(name : String) : Boolean
|
|
|
|
|
+ valid_name?(name : String) : Boolean <<class>>
|
|
|
|
|
- name_initial(name : String) : String
|
|
|
|
|
- patronymic(patronymic : String) : String
|
|
|
|
|
}
|
|
|
|
|