XmpValue

Overview

XmpValue is a class in Aspose.PDF FOSS for Java.

Represents a typed XMP metadata value (ISO 16684-1).

This class provides 19 methods for working with XmpValue objects in Java programs. Available methods include: XmpValue, isArray, isDateTime, isDouble, isInteger, isNamedValues, isString, toArray, toDateTime, toDouble, toInteger, toNamedValues, and 2 additional methods. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: array, dateTime, double, integer, namedValues, string.

Properties

NameTypeAccessDescription
stringbooleanReadReturns true if this value is a simple string.
integerbooleanReadReturns true if this value can be parsed as an integer.
doublebooleanReadReturns true if this value can be parsed as a double.
dateTimebooleanReadReturns true if this value can be parsed as a date/time.
arraybooleanReadReturns true if this value is an array.
namedValuesbooleanReadReturns true if this value is a structure (named value pairs).

Methods

SignatureDescription
XmpValue(value: String)Creates an XmpValue from a string.
XmpValue(value: int)Creates an XmpValue from an integer.
XmpValue(value: double)Creates an XmpValue from a double.
XmpValue(value: Date)Creates an XmpValue from a date (formatted as ISO 8601 / W3C-DTF).
XmpValue(array: Object[])Creates an XmpValue from an array of objects.
XmpValue(entries: List<Map.Entry<String, XmpValue>>)Creates an XmpValue from named value pairs (structure).
isString() → booleanReturns true if this value is a simple string.
isInteger() → booleanReturns true if this value can be parsed as an integer.
isDouble() → booleanReturns true if this value can be parsed as a double.
isDateTime() → booleanReturns true if this value can be parsed as a date/time.
isArray() → booleanReturns true if this value is an array.
isNamedValues() → booleanReturns true if this value is a structure (named value pairs).
toString() → StringReturns the string representation of this value.
toStringValue() → StringAlias for toString().
toInteger() → intReturns this value as an integer.
toDouble() → doubleReturns this value as a double.
toDateTime() → DateReturns this value as a Date (parses ISO 8601 format).
toArray() → Object[]Returns this value as an array.
toNamedValues() → List<Map.Entry<String, XmpValue>>Returns this value as named value pairs (structure).

See Also

 English