XmpArray
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.metadata.core.PropertyValue, com.groupdocs.metadata.core.XmpValueBase
public class XmpArray extends XmpValueBase
Represents base abstraction for XMP array.
| Constructor | Description |
|---|---|
| XmpArray(XmpArrayType arrayType, XmpValueBase[] items) | Initializes a new instance of the XmpArray class. |
| XmpArray(XmpArrayType arrayType, XmpComplexType[] items) | Initializes a new instance of the XmpArray class. |
| Method | Description |
|---|---|
| getArrayType() | Gets the type of the XMP array. |
| Creates an XmpArray instance form an array of XmpComplexType . | |
| from(String[] array, XmpArrayType type) | Creates an XmpArray instance form a string array. |
| from(int[] array, XmpArrayType type) | Creates an XmpArray instance form an integer array. |
| from(Date[] array, XmpArrayType type) | Creates an XmpArray instance form a date array. |
| from(double[] array, XmpArrayType type) | Creates an XmpArray instance form a double array. |
| getXmpRepresentation() | Converts XMP value to the xml representation. |
| Converts the XmpArray to a platform-specific array. |
public XmpArray(XmpArrayType arrayType, XmpValueBase[] items)
Initializes a new instance of the XmpArray class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arrayType | XmpArrayType | Array type. |
| items | XmpValueBase[] | Array items. |
public XmpArray(XmpArrayType arrayType, XmpComplexType[] items)
Initializes a new instance of the XmpArray class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arrayType | XmpArrayType | Array type. |
| items | XmpComplexType[] | Array items. |
public final XmpArrayType getArrayType()
Gets the type of the XMP array.
Returns: XmpArrayType - The type of the XMP array.
public static XmpArray <T>from(T[] array, XmpArrayType type)
Creates an XmpArray instance form an array of XmpComplexType .
Parameters:
| Parameter | Type | Description |
|---|---|---|
| array | T[] | The array to create an XmpArray from. |
| type | XmpArrayType | The type of the XmpArray . |
T : The element type of the source array. |
Returns: XmpArray - An XmpArray containing all the elements from the original array.
public static XmpArray from(String[] array, XmpArrayType type)
Creates an XmpArray instance form a string array.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| array | java.lang.String[] | The array to create an XmpArray from. |
| type | XmpArrayType | The type of the XmpArray . |
Returns: XmpArray - An XmpArray containing all the elements from the original array.
public static XmpArray from(int[] array, XmpArrayType type)
Creates an XmpArray instance form an integer array.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| array | int[] | The array to create an XmpArray from. |
| type | XmpArrayType | The type of the XmpArray . |
Returns: XmpArray - An XmpArray containing all the elements from the original array.
public static XmpArray from(Date[] array, XmpArrayType type)
Creates an XmpArray instance form a date array.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| array | java.util.Date[] | The array to create an XmpArray from. |
| type | XmpArrayType | The type of the XmpArray . |
Returns: XmpArray - An XmpArray containing all the elements from the original array.
public static XmpArray from(double[] array, XmpArrayType type)
Creates an XmpArray instance form a double array.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| array | double[] | The array to create an XmpArray from. |
| type | XmpArrayType | The type of the XmpArray . |
Returns: XmpArray - An XmpArray containing all the elements from the original array.
public String getXmpRepresentation()
Converts XMP value to the xml representation.
Returns: java.lang.String - Returns string representation of XMP value.
public final T[] <T>toPlatformArray(Class<T> type)
Converts the XmpArray to a platform-specific array.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| type | java.lang.Class |
Returns: T[] - A platform-specific array containing elements of the XmpArray .
T : The type of the array element.
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.