
org.pepstock.charba.client.commons.Constants Maven / Gradle / Ivy
/**
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
package org.pepstock.charba.client.commons;
import org.pepstock.charba.client.utils.RegExp;
/**
* Contains all constants where values can be used in different packages.
*
* @author Andrea "Stock" Stocchero
*
*/
public final class Constants {
// regexp pattern to have only letters and number
private static final String REGEXP_ID_PATTERN = "^[a-zA-Z0-9_]+$";
/**
* Regular expression to check if a string can be used as controller type or plugin ID, "^[a-zA-Z0-9_]+$"
*/
public static final RegExp REGEXP_ID = new RegExp(REGEXP_ID_PATTERN);
/**
* Constant for EMPTY string, {@value}.
*/
public static final String EMPTY_STRING = "";
/**
* Constant for APOSTROPHE string, {@value}.
*/
public static final String APOSTROPHE = "'";
/**
* Constant for SLASH string, {@value}.
*/
public static final String SLASH = "/";
/**
* Constant for NULL string, "<null>".
*/
public static final String NULL_STRING = "";
/**
* Constant for LINE SEPARATOR, {@value}.
*/
public static final String LINE_SEPARATOR = "\n";
/**
* Constant for BLANK, {@value}.
*/
public static final String BLANK = " ";
/**
* Constant for COMMA, {@value}.
*/
public static final String COMMA = ",";
/**
* Constant for COLON, {@value}.
*/
public static final String COLON = ":";
/**
* Constant for PERCENT, {@value}.
*/
public static final String PERCENT = "%";
/**
* Constant for OPEN round bracket, {@value}.
*/
public static final String OPEN_ROUND_BRACKET = "(";
/**
* Constant for CLOSE round bracket, {@value}.
*/
public static final String CLOSE_ROUND_BRACKET = ")";
/**
* Constant for OPEN square bracket, {@value}.
*/
public static final String OPEN_SQUARE_BRACKET = "[";
/**
* Constant for CLOSE square bracket, {@value}.
*/
public static final String CLOSE_SQUARE_BRACKET = "]";
/**
* Constant for OPEN brace, {@value}.
*/
public static final String OPEN_BRACE = "{";
/**
* Constant for CLOSE brace, {@value}.
*/
public static final String CLOSE_BRACE = "}";
/**
* Constants for DOT, {@value}.
*/
public static final String DOT = ".";
/**
* Constants for UNDERSCORE, {@value}.
*/
public static final String UNDERSCORE = "_";
/**
* Constants for MINUS, {@value}.
*/
public static final String MINUS = "-";
/**
* Constants for EQUALS, {@value}.
*/
public static final String EQ = "=";
/**
* Constants for LESS THAN, {@value}.
*/
public static final String LT = "<";
/**
* Constants for GREATER THAN, {@value}.
*/
public static final String GT = ">";
/**
* Constants for AMPERSAND, {@value}.
*/
public static final String AMPERSAND = "&";
/**
* To avoid any instantiation
*/
private Constants() {
// do nothing
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy