Class EdorasVisI18nProperty


  • public class EdorasVisI18nProperty
    extends java.lang.Object
    Edoras VIS i18n property.
    Author:
    Filip Hrisafov
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.String> localize​(java.lang.String language)
      Get the property in the desired language.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • localize

        public java.util.Optional<java.lang.String> localize​(java.lang.String language)
        Get the property in the desired language.
        Parameters:
        language - the language to use to localize the property
        Returns:
        the value of the property in the given language, if value in the language does not exists, then the default language for the property value is tried, if that does not exists then Optional.empty() is returned