| | |
| | | |
| | | String nvalue = value.trim().toLowerCase(); |
| | | E eValue = decodeMap.get(nvalue); |
| | | if (eValue == null) { |
| | | throw PropertyException.illegalPropertyValueException(this, value); |
| | | } else { |
| | | if (eValue != null) { |
| | | return eValue; |
| | | } |
| | | throw PropertyException.illegalPropertyValueException(this, value); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public final LocalizableMessage getValueSynopsis(Locale locale, E value) { |
| | | ManagedObjectDefinitionI18NResource resource = ManagedObjectDefinitionI18NResource.getInstance(); |
| | | String property = "property." + getName() + ".syntax.enumeration.value." + value.toString() + ".synopsis"; |
| | | String property = "property." + getName() + ".syntax.enumeration.value." + value + ".synopsis"; |
| | | try { |
| | | return resource.getMessage(getManagedObjectDefinition(), property, locale); |
| | | } catch (MissingResourceException e) { |