public static Rules parse(HtmlElement element, String str){
		switch(str){
			case "none":
				return NONE;
				
			case "groups":
				return GROUPS;
				
			case "rows":
				return ROWS;
				
			case "cols":
				return COLS;
				
			case "all":
				return ALL;
				
			default:
				return null;
		}
	}