org.cpsolver.studentsct.reservation

## Class UniversalOverride.StudentMatcher

- java.lang.Object
- - org.cpsolver.studentsct.reservation.UniversalOverride.StudentMatcher

- All Implemented Interfaces:
    Query.TermMatcher
  Direct Known Subclasses:
    AbstractStudentSectioningReport.RequestMatcher
  Enclosing class:
    UniversalOverride

      public static class UniversalOverride.StudentMatcher
      extends Object
      implements Query.TermMatcher

  Student matcher matching the student's area, classification, major, minor, group, accommodation, campus, advisor or student external id, or status.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `StudentMatcher(Student student)`
    `StudentMatcher(Student student, Course course)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `match(String attr, String term)` Does the object has the given attribute matching the given term?
    `Student` | `student()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### StudentMatcher

          public StudentMatcher(Student student,
                                Course course)

    - #### StudentMatcher

          public StudentMatcher(Student student)

  - ### Method Detail

    - #### student

          public Student student()

    - #### match

          public boolean match(String attr,
                               String term)

      Description copied from interface: `Query.TermMatcher`
      Does the object has the given attribute matching the given term? For example, for a student, major:M1 would match a student that has major M1 (attribute is major, term is M1).
      Specified by:
        `match` in interface `Query.TermMatcher`