private static boolean regexCheckStr(String regexStr, String checkStr)
{
//获得Pattern对象
Pattern p = Pattern.compile(regexStr);
//获得Matcher对象
Matcher m = p.matcher(checkStr);
//返回区别值
boolean isOk = m.matches();;
return isOk;
}
public List<Menu> getMenu(){
List<Menu> l = new ArrayList<Menu>();
Menu m1 = new Menu("901","学校1","0");
Menu m2 = new Menu("902","学校2","0");
Menu m3 = new Menu("90101","学校1班级1","901");
Menu m4 = new Menu("90102","学校1班级2","901");
Menu m5 = new Menu("90201","学校2班级1","902");
Menu m6 = new Menu("90202","学校2班级2","902");
Menu m7 = new Menu("9010101","学校1班级1组1","90101");
Menu m8 = new Menu("9010102","学校1班级1组2","90101");
l.add(m1);
l.add(m2);
l.add(m3);
l.add(m4);
l.add(m5);
l.add(m6);
l.add(m7);
l.add(m8);
return l;
}
{
//获得Pattern对象
Pattern p = Pattern.compile(regexStr);
//获得Matcher对象
Matcher m = p.matcher(checkStr);
//返回区别值
boolean isOk = m.matches();;
return isOk;
}
public List<Menu> getMenu(){
List<Menu> l = new ArrayList<Menu>();
Menu m1 = new Menu("901","学校1","0");
Menu m2 = new Menu("902","学校2","0");
Menu m3 = new Menu("90101","学校1班级1","901");
Menu m4 = new Menu("90102","学校1班级2","901");
Menu m5 = new Menu("90201","学校2班级1","902");
Menu m6 = new Menu("90202","学校2班级2","902");
Menu m7 = new Menu("9010101","学校1班级1组1","90101");
Menu m8 = new Menu("9010102","学校1班级1组2","90101");
l.add(m1);
l.add(m2);
l.add(m3);
l.add(m4);
l.add(m5);
l.add(m6);
l.add(m7);
l.add(m8);
return l;
}