|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.james.mailboxmanager.manager.MailboxExpression
public class MailboxExpression
Expresses select criteria for mailboxes.
Constructor Summary | |
---|---|
MailboxExpression(java.lang.String base,
java.lang.String expression,
char freeWildcard,
char localWildcard)
Constructs an expression determining a set of mailbox names. |
Method Summary | |
---|---|
java.lang.String |
getBase()
Gets the base reference name for the search. |
java.lang.String |
getCombinedName(char hierarchyDelimiter)
Get combined name formed by adding expression to base using the given hierarchy delimiter. |
java.lang.String |
getExpression()
Gets the name search expression. |
char |
getFreeWildcard()
Gets wildcard character that matches any series of characters. |
char |
getLocalWildcard()
Gets wildacard character that matches any series of characters excluding hierarchy delimiters. |
boolean |
isExpressionMatch(java.lang.String name,
char hierarchyDelimiter)
Is the given name a match for getExpression() ? |
boolean |
isWild()
Is this expression wild? |
java.lang.String |
toString()
Renders a string sutable for logging. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MailboxExpression(java.lang.String base, java.lang.String expression, char freeWildcard, char localWildcard)
base
- base reference name, not nullexpression
- mailbox match expression, not nullfreeWildcard
- matches any series of charaterslocalWildcard
- matches any sequence of characters up to the next hierarchy
delimiterMethod Detail |
---|
public final java.lang.String getBase()
public final java.lang.String getExpression()
public final char getFreeWildcard()
public final char getLocalWildcard()
public final boolean isExpressionMatch(java.lang.String name, char hierarchyDelimiter)
getExpression()
?
name
- name to be matchedhierarchyDelimiter
- mailbox hierarchy delimiter
public java.lang.String getCombinedName(char hierarchyDelimiter)
hierarchyDelimiter
- delimiter for mailbox hierarchy
getBase()
combined with getExpression()
, not
nullpublic boolean isWild()
public java.lang.String toString()
toString
in class java.lang.Object
String
representation of this object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |