/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @query-based getter created by EMF-IncQuery for query-based feature teachersWithMostCourses */ public EList<Teacher> getTeachersWithMostCourses() { if (teachersWithMostCoursesHandler == null) { teachersWithMostCoursesHandler = QueryBasedFeatureHelper.getQueryBasedFeatureHandler( this, SchoolPackageImpl.Literals.SCHOOL__TEACHERS_WITH_MOST_COURSES, "teachersWithMostCourses", "School", "Teacher", QueryBasedFeatureKind.MANY_REFERENCE, true, false); } return teachersWithMostCoursesHandler.getManyReferenceValueAsEList(this); }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @query-based getter created by EMF-IncQuery for query-based feature lastYear */ public Year basicGetLastYear() { if (lastYearHandler == null) { lastYearHandler = QueryBasedFeatureHelper.getQueryBasedFeatureHandler( this, SchoolPackageImpl.Literals.SCHOOL__LAST_YEAR, "lastYear", "School", "Year", QueryBasedFeatureKind.SINGLE_REFERENCE, true, false); } return (school.Year) lastYearHandler.getSingleReferenceValue(this); }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @query-based getter created by EMF-IncQuery for query-based feature numberOfTeachers */ public int getNumberOfTeachers() { if (numberOfTeachersHandler == null) { numberOfTeachersHandler = QueryBasedFeatureHelper.getQueryBasedFeatureHandler( this, SchoolPackageImpl.Literals.SCHOOL__NUMBER_OF_TEACHERS, "teachers", "School", null, QueryBasedFeatureKind.COUNTER, true, false); } return numberOfTeachersHandler.getIntValue(this); }