use of jakarta.mail.search.FromStringTerm in project exist by eXist-db.
the class MessageListFunctions method parseFromTerm.
private SearchTerm parseFromTerm(Node terms) throws XPathException {
SearchTerm st = null;
String pattern = ((Element) terms).getAttribute("pattern");
if (pattern != null && !pattern.isEmpty()) {
st = new FromStringTerm(pattern);
} else {
throw (new XPathException(this, "Pattern attribute must be specified for term with type: " + ((Element) terms).getAttribute("type")));
}
return (st);
}
Aggregations