Пример #1
0
 private static Modality getModdality(String name) {
   try {
     return Modality.valueOf(name);
   } catch (Exception e) {
     LOGGER.error("Modality reference of {} is missing", name, e); // $NON-NLS-1$
   }
   return null;
 }
Пример #2
0
 public void serialize(Modality modality) {
   sb.append(modality.name().toLowerCase());
 }
Пример #3
0
 private void renderModality(@NotNull Modality modality, @NotNull StringBuilder builder) {
   if (!modifiers.contains(Modifier.MODALITY)) return;
   String keyword = modality.name().toLowerCase();
   builder.append(renderKeyword(keyword)).append(" ");
 }