Class PathnameConstants


  • @Taxonomy(stability=UNCOMMITTED)
    public final class PathnameConstants
    extends Object
    Constants and regex related to pathnames.

    Wildcarding is basic: a '*" means "0 or more characters" (a '*' is converted to '.*' for regex purposes).

    See Also:
    Pathnames, PathnameParser
    • Field Detail

      • SEPARATOR

        public static final char SEPARATOR
        delimiter between parts of a path
        See Also:
        Constant Field Values
      • MATCH_ZERO_OR_MORE

        public static final char MATCH_ZERO_OR_MORE
        Wildcard charcter, the '*' (not a regex expression). Usage is similar to usage in a shell, the '*' means "zero or more
        See Also:
        Constant Field Values
      • SUBSCRIPT_LEFT

        public static final char SUBSCRIPT_LEFT
        subscript left character, subscripts must be a character pair for grammar reasons
        See Also:
        Constant Field Values
      • SUBSCRIPT_RIGHT

        public static final char SUBSCRIPT_RIGHT
        subscript right character, subscripts must be a character pair for grammar reasons
        See Also:
        Constant Field Values
      • LEGAL_CHAR_FOR_TYPE

        public static final String LEGAL_CHAR_FOR_TYPE
        The characters legal to use as the type portion of a pathname, expressed as regex compatible string, but without enclosing square brackets.
        See Also:
        Constant Field Values
      • LEGAL_CHAR_FOR_TYPE_PATTERN

        public static final String LEGAL_CHAR_FOR_TYPE_PATTERN
        Regex pattern for one legal character (in square braces).
        See Also:
        Constant Field Values
      • LEGAL_TYPE_PATTERN

        public static final String LEGAL_TYPE_PATTERN
        regex pattern denoting a legal type, grouping () surrounding it
        See Also:
        Constant Field Values
      • LEGAL_CHAR_FOR_NAME

        public static final String LEGAL_CHAR_FOR_NAME
        The characters legal to use as a name. A name may be zero length, and it may include the SEPARATOR character. However, it may not include the right square brace, because that character terminates a subscript. JMX ObjectNames might have additional restrictions.
        See Also:
        Constant Field Values
      • LEGAL_CHAR_FOR_NAME_PATTERN

        public static final String LEGAL_CHAR_FOR_NAME_PATTERN
        Regex pattern for one legal name character (in square braces).
        See Also:
        Constant Field Values
      • LEGAL_NAME_PATTERN

        public static final String LEGAL_NAME_PATTERN
        Regex pattern denoting a legal name
        See Also:
        Constant Field Values