Class RegexPatterns


  • public final class RegexPatterns
    extends Object
    This class provides regex patterns used for entity id validation.
    • 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_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.