public static Address[] parseAddresses(String s) throws AddressException { String[] tokens = Str.tokenize(s, ",;:"); InternetAddress[] ads = new InternetAddress[tokens.length]; for (int i = 0; i < ads.length; i++) { ads[i] = new InternetAddress(tokens[i]); } return ads; }
@SuppressWarnings("unchecked") public ArrayList<AEntity> search(String text) { String[] keys = Str.tokenize(text, " "); ArrayList ret = new ArrayList(); ret.addAll(getMatching(getRequirements(), keys)); ret.addAll(getMatching(getQualitys(), keys)); ret.addAll(getMatching(getTasks(), keys)); ret.addAll(getMatching(getWikipages(), keys)); ret.addAll(getMatching(getIssues(), keys)); ret.addAll(getMatching(getImpediments(), keys)); ret.addAll(getMatching(getRisks(), keys)); ret.addAll(getMatching(getFiles(), keys)); ret.addAll(getMatching(getReleases(), keys)); ret.addAll(getMatching(getBlogEntrys(), keys)); return ret; }