Class RegexPatterns
- java.lang.Object
-
- org.eclipse.ditto.model.base.entity.id.RegexPatterns
-
public final class RegexPatterns extends Object
This class provides regex patterns used for entity id validation.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ALLOWED_CHARACTERS_IN_NAME
Defines which characters are allowed to use in a name of an entity.static String
ALLOWED_CHARACTERS_IN_NAME_INCLUDING_DOLLAR
Adds the $ to allowed characters.static String
ALLOWED_NAMESPACE_CHARACTERS_INCLUDING_DOT
Adds the dot to allowed characters.static String
ALLOWED_NAMESPACE_CHARACTERS_REGEX
Defines which characters are allowed to use in a namespace.static String
ENTITY_NAME_GROUP_NAME
Name of the entity name group in the entity ID regex.static Pattern
ENTITY_NAME_PATTERN
The compiled regex pattern for entity names.static String
ENTITY_NAME_REGEX
The regex pattern for an Entity Name.static Pattern
ID_PATTERN
The compiled regex pattern for namespaced entity IDs.static String
ID_REGEX
The regex pattern for an Entity ID.static String
NAMESPACE_DELIMITER
The delimiter between namespace and name in an entity ID.static String
NAMESPACE_GROUP_NAME
Name of the namespace group in the entity ID regex.static Pattern
NAMESPACE_PATTERN
The compiled regex pattern for namespaces.static String
NAMESPACE_REGEX
The regex pattern for namespaces which validates that the namespace conforms the java package notation.static String
URI_PATH_SEGMENT
First part of an entity name.static String
URI_PATH_SEGMENT_INCLUDING_DOLLAR
Second part of an entity name: This part allows the $ symbol.static String
URL_ESCAPES
Regex pattern that matches URL escapes.
-
-
-
Field Detail
-
NAMESPACE_GROUP_NAME
public static final String NAMESPACE_GROUP_NAME
Name of the namespace group in the entity ID regex.- See Also:
- Constant Field Values
-
ALLOWED_NAMESPACE_CHARACTERS_REGEX
public static final String ALLOWED_NAMESPACE_CHARACTERS_REGEX
Defines which characters are allowed to use in a namespace.- See Also:
- Constant Field Values
-
ALLOWED_NAMESPACE_CHARACTERS_INCLUDING_DOT
public static final String ALLOWED_NAMESPACE_CHARACTERS_INCLUDING_DOT
Adds the dot to allowed characters. Its defined as separate constant because namespaces are not allowed to start with dots.- See Also:
- Constant Field Values
-
NAMESPACE_REGEX
public static final String NAMESPACE_REGEX
The regex pattern for namespaces which validates that the namespace conforms the java package notation.- See Also:
- Constant Field Values
-
NAMESPACE_DELIMITER
public static final String NAMESPACE_DELIMITER
The delimiter between namespace and name in an entity ID.- See Also:
- Constant Field Values
-
ENTITY_NAME_GROUP_NAME
public static final String ENTITY_NAME_GROUP_NAME
Name of the entity name group in the entity ID regex.- See Also:
- Constant Field Values
-
URL_ESCAPES
public static final String URL_ESCAPES
Regex pattern that matches URL escapes. E.G. %3A for a colon (':').- See Also:
- Constant Field Values
-
ALLOWED_CHARACTERS_IN_NAME
public static final String ALLOWED_CHARACTERS_IN_NAME
Defines which characters are allowed to use in a name of an entity.- See Also:
- Constant Field Values
-
ALLOWED_CHARACTERS_IN_NAME_INCLUDING_DOLLAR
public static final String ALLOWED_CHARACTERS_IN_NAME_INCLUDING_DOLLAR
Adds the $ to allowed characters. Its defined as separate constant because names are not allowed to start with $.- See Also:
- Constant Field Values
-
URI_PATH_SEGMENT
public static final String URI_PATH_SEGMENT
First part of an entity name.- See Also:
- Constant Field Values
-
URI_PATH_SEGMENT_INCLUDING_DOLLAR
public static final String URI_PATH_SEGMENT_INCLUDING_DOLLAR
Second part of an entity name: This part allows the $ symbol.- See Also:
- Constant Field Values
-
ENTITY_NAME_REGEX
public static final String ENTITY_NAME_REGEX
The regex pattern for an Entity Name.- See Also:
- Constant Field Values
-
ID_REGEX
public static final String ID_REGEX
The regex pattern for an Entity ID. Combines "namespace" pattern (java package notation + a colon) and "name" pattern.- See Also:
- Constant Field Values
-
NAMESPACE_PATTERN
public static final Pattern NAMESPACE_PATTERN
The compiled regex pattern for namespaces.
-
ENTITY_NAME_PATTERN
public static final Pattern ENTITY_NAME_PATTERN
The compiled regex pattern for entity names.
-
ID_PATTERN
public static final Pattern ID_PATTERN
The compiled regex pattern for namespaced entity IDs.
-
-