XmpLangAlt
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.metadata.core.PropertyValue, com.groupdocs.metadata.core.XmpValueBase, com.groupdocs.metadata.core.XmpArray
public final class XmpLangAlt extends XmpArray
Represents XMP Language Alternative.
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 | Description |
|---|---|
| XmpLangAlt(String defaultValue) | Initializes a new instance of the XmpLangAlt class. |
| XmpLangAlt(Hashtable<String,String> dictionary) | Initializes a new instance of the XmpLangAlt class. |
| Method | Description |
|---|---|
| get_Item(String language) | Gets the value associated with the specified language. |
| getLanguages() | Gets an array of all languages registered in the instance of XmpLangAlt . |
| contains(String language) | Determines whether the XmpLangAlt contains the specified language. |
| getXmpRepresentation() | Converts XMP value to the xml representation. |
public XmpLangAlt(String defaultValue)
Initializes a new instance of the XmpLangAlt class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| defaultValue | java.lang.String | The default value. |
public XmpLangAlt(Hashtable<String,String> dictionary)
Initializes a new instance of the XmpLangAlt class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| dictionary | java.util.Hashtable<java.lang.String,java.lang.String> | A dictionary containing values by languages. |
public final String get_Item(String language)
Gets the value associated with the specified language.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| language | java.lang.String | The language. Value: String value. |
Returns: java.lang.String - Value for the specified language.
public final String[] getLanguages()
Gets an array of all languages registered in the instance of XmpLangAlt .
Returns: java.lang.String[] - An array of all languages registered in the instance of XmpLangAlt .
public final boolean contains(String language)
Determines whether the XmpLangAlt contains the specified language.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| language | java.lang.String | The language to locate in the XmpLangAlt . |
Returns: boolean - True if the XmpLangAlt contains an element with the specified language; otherwise, false.
public String getXmpRepresentation()
Converts XMP value to the xml representation.
Returns: java.lang.String - Returns string representation of XMP value.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.