public class RegexQNamePattern extends java.lang.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(java.lang.String combinedPattern) |
RegexQNamePattern(java.lang.String namespaceUriPattern,
java.lang.String localNamePattern) |
public static final QNamePattern MATCH_ALL
public RegexQNamePattern(java.lang.String namespaceUriPattern, java.lang.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(java.lang.String combinedPattern)
combinedPattern
- a regex pattern that will be applied to the full qname
string representationQName.toString()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isMatch(QName qname)
QNamePattern
isMatch
in interface QNamePattern
qname
- the value to check against this patternCopyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.