com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class XmpValue



  • public class XmpValue
    extends Object

    Represents XMP value

    • Constructor Detail

      • XmpValue

        public XmpValue(String value)

        Constructor for string value.

        Parameters:
        value - String value.
      • XmpValue

        public XmpValue(int value)

        Consructor for integer value.

        Parameters:
        value - Integer value.
      • XmpValue

        public XmpValue(double value)

        Constructor for floating point Value.

        Parameters:
        value - Double value.
      • XmpValue

        public XmpValue(Date value)

        Constructor for date time value.

        Parameters:
        value - Date time value.
      • XmpValue

        public XmpValue(XmpValue[] array)

        Constructor for array value.

        Parameters:
        array - Array value.
      • XmpValue

        public XmpValue(Object value)
    • Method Detail

      • isString

        public boolean isString()

        Returns true if value is string.

        Returns:
        boolean value
      • isInteger

        public boolean isInteger()

        Returns true if value is integer.

        Returns:
        boolean value
      • isDouble

        public boolean isDouble()

        Returns true if value is floating point value.

        Returns:
        boolean value
      • isDateTime

        public boolean isDateTime()

        Returns true if value is DateTime.

        Returns:
        boolean value
      • isField

        public boolean isField()

        Returns true if XmpValue is field.

        Returns:
        boolean value
      • isNamedValue

        public boolean isNamedValue()

        Returns true if XmpValue is named value.

        Returns:
        boolean value
      • isNamedValues

        public boolean isNamedValues()

        Returns true is XmpValue represents named values.

        Returns:
        boolean value
      • isStructure

        public boolean isStructure()

        Returns true is XmpValue represents structure.

        Returns:
        boolean value
      • isArray

        public boolean isArray()

        Returns true is XmpValue is array.

        Returns:
        boolean value
      • toStringValue

        public String toStringValue()

        Converts to string.

        Returns:
        String value
      • toInteger

        public int toInteger()

        Converts to integer.

        Returns:
        int value
      • toDouble

        public double toDouble()

        Converts to double.

        Returns:
        double value
      • toDateTime

        public Date toDateTime()

        Converts to date time.

        Returns:
        Date instance
      • toArray

        public XmpValue[] toArray()

        Returns array.

        Returns:
        XmpValue array
      • toStructure

        public XmpField[] toStructure()

        Returns XMP value as structure (set of fields).

        Returns:
        XmpField array
      • toField

        public XmpField toField()

        Returns XMP value as XMP field.

        Returns:
        XmpField instance
      • toNamedValue

        public HashMap<String,XmpValue> toNamedValue()

        Returns XMP value as named value.

        Returns:
        HashMap instance with String Key and XmpValue value
      • toNamedValueInternal

        public com.aspose.ms.System.Collections.Generic.KeyValuePair<String,XmpValue> toNamedValueInternal()
        For Internal usage only
        Returns:
        For Internal usage only
      • toNamedValues

        public HashMap<String,XmpValue> toNamedValues()

        Returns XMP value as named value collection.

        Returns:
        HashMap instance with String Key and XmpValue value
      • toNamedValuesInternal

        public com.aspose.ms.System.Collections.Generic.KeyValuePair<String,XmpValue>[] toNamedValuesInternal()
        For Internal usage only
        Returns:
        For Internal usage only
      • toString

        public String toString()

        Returs string representation of XmpValue.

        Overrides:
        toString in class Object
        Returns:
        String value
      • toString

        public String toString(com.aspose.ms.System.IFormatProvider formatProvider)

        Returns string representation.

        Parameters:
        formatProvider - IFormatProvider instance
        Returns:
        String value
      • to_XmpValue

        public static XmpValue to_XmpValue(String value)

        Convers string to XmpValue.

        Parameters:
        value - String value
        Returns:
        XmpValue instance
      • to_XmpValue

        public static XmpValue to_XmpValue(int value)

        Converts integer into XmpValue.

        Parameters:
        value - int value
        Returns:
        XmpValue instance
      • to_XmpValue

        public static XmpValue to_XmpValue(double value)

        Converts double into XmpValue.

        Parameters:
        value - double value
        Returns:
        XmpValue instance
      • to_XmpValue

        public static XmpValue to_XmpValue(Date value)

        Converts DateTime into XmpValue.

        Parameters:
        value - Date instance
        Returns:
        XmpValue instance
      • to_XmpValue

        public static XmpValue to_XmpValue(Object[] value)

        Converts array to XmpValue.

        Parameters:
        value - Array of Objects
        Returns:
        XmpValue instance
      • to_Array

        public static XmpValue[] to_Array(XmpValue value)

        Converts XmpValue to array.

        Parameters:
        value - XmpValue instance
        Returns:
        XmpValue array
      • to_

        public static XmpValue[] to_(XmpValue value)

        Converts XmpValue into array.

        Parameters:
        value - XmpValue instance
        Returns:
        XmpValue array
      • to_String

        public static String to_String(XmpValue value)

        Converts XmpValue into string.

        Parameters:
        value - XmpValue instance
        Returns:
        String value
      • to_KeyValuePair

        public static com.aspose.ms.System.Collections.Generic.KeyValuePair<String,XmpValue> to_KeyValuePair(XmpValue value)

        Converts XmpValue to named value.

        Parameters:
        value - XmpValue instance
        Returns:
        Internal Array
      • to_Generic

        public static com.aspose.ms.System.Collections.Generic.KeyValuePair<String,XmpValue>[] to_Generic(XmpValue value)

        Get KeyValuePair array

        Parameters:
        value - XmpValue instance
        Returns:
        Internal Array