private boolean matchesUnit(Unit unit, String text, boolean isRegex) { return matches(unit.getProperty(), text, isRegex) || matchesConcept(unit, text, isRegex); }
private boolean matchesConcept(Concept concept, String text, boolean isRegex) { for (String name : concept.getNames()) { if (matches(name, text, isRegex)) return true; } if (matches(concept.getCode(), text, isRegex)) return true; if (matches(concept.getCodeUC(), text, isRegex)) return true; if (matches(concept.getPrintSymbol(), text, isRegex)) return true; return false; }
private boolean matchesUnit(Unit unit, String text, boolean isRegex) { return matches(unit.getProperty(), text, isRegex) || matchesConcept(unit, text, isRegex); }
private boolean matchesConcept(Concept concept, String text, boolean isRegex) { for (String name : concept.getNames()) { if (matches(name, text, isRegex)) return true; } if (matches(concept.getCode(), text, isRegex)) return true; if (matches(concept.getCodeUC(), text, isRegex)) return true; if (matches(concept.getPrintSymbol(), text, isRegex)) return true; return false; }