**Inheritance:**
java.lang.Object

**All Implemented Interfaces:**
[com.aspose.imaging.xmp.IXmlValue](../../com.aspose.imaging.xmp/ixmlvalue)
```
public class LangAlt implements IXmlValue
```

Represents XMP Language Alternative.
## Constructors

| Constructor | Description |
| --- | --- |
| [LangAlt(String defaultValue)](#LangAlt-java.lang.String-) | Initializes a new instance of the `LangAlt` class. |
| [LangAlt()](#LangAlt--) | Initializes a new instance of the `LangAlt` class. |
## Methods

| Method | Description |
| --- | --- |
| [addLanguage(String language, String value)](#addLanguage-java.lang.String-java.lang.String-) | Adds the language. |
| [toString()](#toString--) | Returns a `System.String` that represents this instance. |
| [getXmlValue()](#getXmlValue--) | Converts XMP value to the XML representation. |
### LangAlt(String defaultValue) {#LangAlt-java.lang.String-}
```
public LangAlt(String defaultValue)
```


Initializes a new instance of the `LangAlt` class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| defaultValue | java.lang.String | The default value. |

### LangAlt() {#LangAlt--}
```
public LangAlt()
```


Initializes a new instance of the `LangAlt` class.

### addLanguage(String language, String value) {#addLanguage-java.lang.String-java.lang.String-}
```
public void addLanguage(String language, String value)
```


Adds the language.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| language | java.lang.String | The language. |
| value | java.lang.String | The language value. |

### toString() {#toString--}
```
public String toString()
```


Returns a `System.String` that represents this instance.

**Returns:**
java.lang.String - A `System.String` that represents this instance.
### getXmlValue() {#getXmlValue--}
```
public String getXmlValue()
```


Converts XMP value to the XML representation.

**Returns:**
java.lang.String - Returns the XMP value converted to the XML representation.
