Esempio n. 1
0
 public String getLabel(boolean withGuillement) {
   assert label == null || label.length() > 0;
   if (isWithOOSymbol()) {
     return null;
   }
   if (withGuillement) {
     return StringUtils.manageGuillemetStrict(label);
   }
   return label;
 }
Esempio n. 2
0
 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);
 }