com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class LangAlt

  • All Implemented Interfaces:
    IXmlValue


    public final class LangAlt
    extends XmpValueBase
    implements IXmlValue

    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

      • LangAlt

        public LangAlt(String defaultValue)

        Initializes a new instance of the LangAlt class.

        Parameters:
        defaultValue - The default value.
      • LangAlt

        public LangAlt()

        Initializes a new instance of the LangAlt class.

    • Method Detail

      • get_Item

        public final String get_Item(String language)

        Gets the value for the specified language.

        Parameters:
        language - The language. Value: String value.
        Returns:
        Value for the specified language or null.
      • addLanguage

        public final void addLanguage(String language,
                       String value)

        Adds the language.

        Parameters:
        language - The language.
        value - The value.
      • toString

        public String toString()

        Returns a System.String that represents this instance.

        Overrides:
        toString in class XmpValueBase
        Returns:
        A System.String that represents this instance.
      • getXmlValue

        public final String getXmlValue()

        Converts XMP value to the xml representation.

        Specified by:
        getXmlValue in interface IXmlValue
        Returns:
        Returns string representation of XMP value.