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; }
public void serialize(Modality modality) { sb.append(modality.name().toLowerCase()); }
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(" "); }