Class HrefLang

    • Constructor Detail

      • HrefLang

        public HrefLang​(java.lang.String languageCode)
        This attribute indicates the language of the linked resource. It is purely advisory. Allowed values are determined by BCP47 for HTML5 and by RFC1766 for HTML4. Use this attribute only if the href attribute is present.
        Parameters:
        languageCode - the languageCode.
        Since:
        1.0.0
      • HrefLang

        public HrefLang​(java.util.Locale language)
        This attribute indicates the language of the linked resource. It is purely advisory. Allowed values are determined by BCP47 for HTML5 and by RFC1766 for HTML4. Use this attribute only if the href attribute is present.
        Parameters:
        language - the Locale object for language.
        Since:
        1.0.0
    • Method Detail

      • setValue

        public void setValue​(java.lang.String languageCode)
        sets the value for this attribute
        Parameters:
        languageCode - the languageCode.
        Since:
        1.0.0
      • setValue

        public void setValue​(java.util.Locale language)
        sets the value for this attribute
        Parameters:
        language - the Locale object for language.
        Since:
        1.0.0
      • getLocale

        public java.util.Locale getLocale​()
      • getValue

        public java.lang.String getValue​()
        gets the value of this attribute
        Returns:
        the languageCode.
        Since:
        1.0.0
      • init

        protected void init​()
        invokes only once per object
        Since:
        1.0.0