public String getLabel(boolean withGuillement) { assert label == null || label.length() > 0; if (isWithOOSymbol()) { return null; } if (withGuillement) { return StringUtils.manageGuillemetStrict(label); } return label; }
public List<String> getLabels(boolean useGuillemet) { if (getLabel(false) == null) { return null; } final List<String> result = new ArrayList<String>(); final Pattern p = MyPattern.cmpile("\\<\\<.*?\\>\\>"); final Matcher m = p.matcher(getLabel(false)); while (m.find()) { if (useGuillemet) { result.add(StringUtils.manageGuillemetStrict(m.group())); } else { result.add(m.group()); } } return Collections.unmodifiableList(result); }