@AlfrescoPublicApi public class RegexQNamePattern extends Object implements QNamePattern
qnames
using
regular expression matching.
A simple convenience
pattern matcher is also provided that
will match any qname.
String.matches(java.lang.String)
Modifier and Type | Field and Description |
---|---|
static QNamePattern |
MATCH_ALL
A helper pattern matcher that will match all qnames
|
Constructor and Description |
---|
RegexQNamePattern(String combinedPattern) |
RegexQNamePattern(String namespaceUriPattern,
String localNamePattern) |
Modifier and Type | Method and Description |
---|---|
boolean |
isMatch(QName qname)
Checks if the given qualified name matches the pattern represented
by this instance
|
String |
toString() |
public static final QNamePattern MATCH_ALL
public RegexQNamePattern(String namespaceUriPattern, String localNamePattern)
namespaceUriPattern
- a regex pattern that will be applied to the namespace URIlocalNamePattern
- a regex pattern that will be applied to the local namepublic RegexQNamePattern(String combinedPattern)
combinedPattern
- a regex pattern that will be applied to the full qname
string representationQName.toString()
public boolean isMatch(QName qname)
QNamePattern
isMatch
in interface QNamePattern
qname
- the value to check against this patternCopyright © 2005–2020 Alfresco Software. All rights reserved.