2 * Copyright (c) 2019-2020. Developed by Hedgecode.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package org.hedgecode.chess.scanner.regex;
22 * @author Dmitry Samoshin aka gotty
24 public final class RegexParams {
26 public static final String TOURNAMENT_ID = "[tournamentId]";
27 public static final String PAGE_ID = "[pageId]";
28 public static final String GAME_ID = "[gameId]";
29 public static final String QUERY = "[query]";
31 private String tournamentId;
32 private String pageId;
33 private String gameId;
35 private boolean isUrlEncode;
37 public RegexParams(String tournamentId, String pageId) {
38 this.tournamentId = tournamentId;
42 public RegexParams(String gameId) {
46 public RegexParams(String query, boolean isUrlEncode) {
48 this.isUrlEncode = isUrlEncode;
51 public String getTournamentId() {
55 public String getPageId() {
59 public String getGameId() {
63 public String getQuery() {
67 public boolean isUrlEncode() {