com.groupdocs.metadata.core

Interfaces

Classes

Enums

Exceptions

com.groupdocs.metadata.core

Class XmpLangAlt

  • All Implemented Interfaces:
    IXmpType


    public final class XmpLangAlt
    extends XmpArray

    Represents XMP Language Alternative. <br></br>


    An alternative array of simple text items. Language alternatives facilitate the selection of a simple text item based on a desired language. Each array item shall have an xml:lang qualifier. Each xml:lang value shall be unique among the items.
    • Constructor Detail

      • XmpLangAlt

        public XmpLangAlt(String defaultValue)

        Initializes a new instance of the XmpLangAlt class.

        Parameters:
        defaultValue - The default value.
      • XmpLangAlt

        public XmpLangAlt(Hashtable<String,String> dictionary)

        Initializes a new instance of the XmpLangAlt class.

        Parameters:
        dictionary - A dictionary containing values by languages.
    • Method Detail

      • get_Item

        public final String get_Item(String language)

        Gets the value associated with the specified language.

        Parameters:
        language - The language. Value: String value.
        Returns:
        Value for the specified language.
      • getLanguages

        public final String[] getLanguages()

        Gets an array of all languages registered in the instance of XmpLangAlt.

        Returns:
        An array of all languages registered in the instance of XmpLangAlt.
      • contains

        public final boolean contains(String language)

        Determines whether the XmpLangAlt contains the specified language.

        Parameters:
        language - The language to locate in the XmpLangAlt.
        Returns:
        True if the XmpLangAlt contains an element with the specified language; otherwise, false.