Matches the name pattern against the specified name.
The pattern may be a full name or a partial name with one or more
wildcard characters ("*"), or a disjunction (using the "|" character
to represent logical OR) of these. For example,
"jcr:*|foo:bar"
would match
"foo:bar", but also
"jcr:whatever".
The EBNF for pattern is:
namePattern ::= disjunct {'|' disjunct}
disjunct ::= name [':' name]
name ::= '*' |
['*'] fragment {'*' fragment}['*']
fragment ::= char {char}
char ::= nonspace | ' '
nonspace ::= (* Any Unicode character except:
'/', ':', '[', ']', '*',
''', '"', '|' or any whitespace
character *)
Note that leading and trailing whitespace around a pattern
is ignored.