/** * Gets the display string, which is specific to {@link OpenmrsMetadata} * * @param delegate the meta-data object. * @return the display string. * @should return a localized message if specified * @should return the name property when no localized message is specified * @should return the empty string when no localized message is specified and the name property * is null */ @PropertyGetter("display") public String getDisplayString(T delegate) { String localization = getLocalization(delegate.getClass().getSimpleName(), delegate.getUuid()); if (localization != null) { return localization; } else { return StringUtils.isEmpty(delegate.getName()) ? "" : delegate.getName(); } }