public final class MailboxQuery extends Object
Modifier and Type | Field and Description |
---|---|
static char |
FREEWILDCARD
Use this wildcard to match every char including the hierarchy delimiter
|
static char |
LOCALWILDCARD
Use this wildcard to match every char except the hierarchy delimiter
|
Constructor and Description |
---|
MailboxQuery(MailboxPath base,
String expression,
char pathDelimiter)
Constructs an expression determining a set of mailbox names.
|
Modifier and Type | Method and Description |
---|---|
MailboxPath |
getBase()
Gets the base reference for the search.
|
String |
getCombinedName()
Get combined name formed by adding the expression to the base using the
given hierarchy delimiter.
|
String |
getExpression()
Gets the name search expression.
|
char |
getFreeWildcard()
Gets wildcard character that matches any series of characters.
|
char |
getLocalWildcard()
Gets wildcard character that matches any series of characters excluding
hierarchy delimiters.
|
boolean |
isExpressionMatch(String name)
Is the given name a match for
getExpression() ? |
boolean |
isWild()
Is this expression wild?
|
String |
toString()
Renders a string suitable for logging.
|
public static final char FREEWILDCARD
public static final char LOCALWILDCARD
public MailboxQuery(MailboxPath base, String expression, char pathDelimiter)
base
- base reference name, not nullexpression
- mailbox match expression, not nullpathDelimiter
- path delimiter to usepublic final MailboxPath getBase()
public final String getExpression()
public final char getFreeWildcard()
public final char getLocalWildcard()
public final boolean isExpressionMatch(String name)
getExpression()
?name
- name to be matchedpublic String getCombinedName()
getBase()
combined with getExpression()
,
notnullpublic boolean isWild()
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.