查询结果高亮显示
/**
* 高亮显示
* 1:通过关键词进行查询
* 2:对关键词进行高亮的显示
* 3: 高亮显示的内容替换原有内容
* */
编写Article实体类:
/**
* Created by angel;
*/
public class Article {
private String studentNo;
private String name;
private String male;
private String age;
private String birthday;
private String classNo;
private String address;
private String isLeader;
public void setAddress(String address) {
this.address = address;
}
public void setAge(String age) {
this.age = age;
}
public void setBirthday(String birthday) {
this.birthday = birthday;
}
public void setClassNo(String classNo) {
this.classNo = classNo;
}
public void setMale(String male) {
this.male = male;
}
public void setName(String name) {
this.name = name;
}
public void setStudentNo(String studentNo) {
this.studentNo = studentNo;
}
public void setIsLeader(String isLeader) {
this.isLeader = isLeader;
}
public String getAddress() {
return address;
}
public String getAge() {
return age;
}
public String getMale() {
return male;
}
public String getBirthday() {
return birthday;
}
public String getClassNo() {
return classNo;
}
public String getIsLeader() {
return isLeader;
}
public String getName() {
return name;
}
public String getStudentNo() {
return studentNo;
}