**Inheritance:**
java.lang.Object, java.util.AbstractCollection, java.util.AbstractList, java.util.ArrayList, [com.aspose.imaging.xmp.XmpCollection](../../com.aspose.imaging.xmp/xmpcollection)
```
public class XmpArray extends XmpCollection
```

Represents Xmp Array in [XmpPackage](../../com.aspose.imaging.xmp/xmppackage).
## Constructors

| Constructor | Description |
| --- | --- |
| [XmpArray()](#XmpArray--) | Initializes a new instance of the [XmpArray](../../com.aspose.imaging.xmp/xmparray) class with [XmpArrayType.UNORDERED](../../com.aspose.imaging.xmp/xmparraytype\#UNORDERED) type and `null` value. |
| [XmpArray(int type)](#XmpArray-int-) | Initializes a new instance of the [XmpArray](../../com.aspose.imaging.xmp/xmparray) class with `type` and `null` value. |
| [XmpArray(int type, String[] items)](#XmpArray-int-java.lang.String---) | Initializes a new instance of the [XmpArray](../../com.aspose.imaging.xmp/xmparray) class. |
## Methods

| Method | Description |
| --- | --- |
| [getValues()](#getValues--) | Gets array of values inside [XmpArray](../../com.aspose.imaging.xmp/xmparray). |
| [toString()](#toString--) | Returns a String that represents this instance. |
### XmpArray() {#XmpArray--}
```
public XmpArray()
```


Initializes a new instance of the [XmpArray](../../com.aspose.imaging.xmp/xmparray) class with [XmpArrayType.UNORDERED](../../com.aspose.imaging.xmp/xmparraytype\#UNORDERED) type and `null` value.

### XmpArray(int type) {#XmpArray-int-}
```
public XmpArray(int type)
```


Initializes a new instance of the [XmpArray](../../com.aspose.imaging.xmp/xmparray) class with `type` and `null` value.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| type | int | The type of array. |

### XmpArray(int type, String[] items) {#XmpArray-int-java.lang.String---}
```
public XmpArray(int type, String[] items)
```


Initializes a new instance of the [XmpArray](../../com.aspose.imaging.xmp/xmparray) class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| type | int | The [XmpArrayType](../../com.aspose.imaging.xmp/xmparraytype) type of array. |
| items | java.lang.String[] | The items list. |

### getValues() {#getValues--}
```
public final String[] getValues()
```


Gets array of values inside [XmpArray](../../com.aspose.imaging.xmp/xmparray).

**Returns:**
java.lang.String[] - array of values inside [XmpArray](../../com.aspose.imaging.xmp/xmparray).
### toString() {#toString--}
```
public String toString()
```


Returns a String that represents this instance.

**Returns:**
java.lang.String - A String that represents this instance.
