com.groupdocs.metadata.core

Interfaces

Classes

Exceptions

com.groupdocs.metadata.core

Class XmpArray

  • All Implemented Interfaces:
    IXmpType
    Direct Known Subclasses:
    XmpLangAlt


    public class XmpArray
    extends XmpValueBase

    Represents base abstraction for XMP array.

    • Constructor Detail

      • XmpArray

        public XmpArray(int arrayType,
                XmpValueBase[] items)

        Initializes a new instance of the XmpArray class.

        Parameters:
        arrayType - Array type.
        items - Array items.
      • XmpArray

        public XmpArray(int arrayType,
                XmpComplexType[] items)

        Initializes a new instance of the XmpArray class.

        Parameters:
        arrayType - Array type.
        items - Array items.
    • Method Detail

      • getArrayType

        public final int getArrayType()

        Gets the type of the XMP array.

        Returns:
        The type of the XMP array.
      • from

        public static <T extends XmpComplexTypeXmpArray from(T[] array,
                                               int type)

        Creates an XmpArray instance form an array of XmpComplexType.

        Parameters:
        array - The array to create an XmpArray from.
        type - The type of the XmpArray.

        T: The element type of the source array.

        Returns:
        An XmpArray containing all the elements from the original array.
      • from

        public static XmpArray from(String[] array,
                    int type)

        Creates an XmpArray instance form a string array.

        Parameters:
        array - The array to create an XmpArray from.
        type - The type of the XmpArray.
        Returns:
        An XmpArray containing all the elements from the original array.
      • from

        public static XmpArray from(int[] array,
                    int type)

        Creates an XmpArray instance form an integer array.

        Parameters:
        array - The array to create an XmpArray from.
        type - The type of the XmpArray.
        Returns:
        An XmpArray containing all the elements from the original array.
      • from

        public static XmpArray from(Date[] array,
                    int type)

        Creates an XmpArray instance form a date array.

        Parameters:
        array - The array to create an XmpArray from.
        type - The type of the XmpArray.
        Returns:
        An XmpArray containing all the elements from the original array.
      • from

        public static XmpArray from(double[] array,
                    int type)

        Creates an XmpArray instance form a double array.

        Parameters:
        array - The array to create an XmpArray from.
        type - The type of the XmpArray.
        Returns:
        An XmpArray containing all the elements from the original array.
      • toPlatformArray

        public final <T> T[] toPlatformArray(Class<T> type)

        Converts the XmpArray to a platform-specific array.

        Returns:
        A platform-specific array containing elements of the XmpArray.

        T: The type of the array element.