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